1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos RSA_new, RSA_free - allocate and free RSA objects 6 1.1 christos 7 1.1 christos =head1 SYNOPSIS 8 1.1 christos 9 1.1 christos #include <openssl/rsa.h> 10 1.1 christos 11 1.1.1.2 christos The following functions have been deprecated since OpenSSL 3.0, and can be 12 1.1.1.2 christos hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 13 1.1.1.2 christos see L<openssl_user_macros(7)>: 14 1.1.1.2 christos 15 1.1 christos RSA *RSA_new(void); 16 1.1 christos 17 1.1 christos void RSA_free(RSA *rsa); 18 1.1 christos 19 1.1 christos =head1 DESCRIPTION 20 1.1 christos 21 1.1 christos RSA_new() allocates and initializes an B<RSA> structure. It is equivalent to 22 1.1 christos calling RSA_new_method(NULL). 23 1.1 christos 24 1.1 christos RSA_free() frees the B<RSA> structure and its components. The key is 25 1.1 christos erased before the memory is returned to the system. 26 1.1 christos If B<rsa> is NULL nothing is done. 27 1.1 christos 28 1.1 christos =head1 RETURN VALUES 29 1.1 christos 30 1.1 christos If the allocation fails, RSA_new() returns B<NULL> and sets an error 31 1.1 christos code that can be obtained by L<ERR_get_error(3)>. Otherwise it returns 32 1.1 christos a pointer to the newly allocated structure. 33 1.1 christos 34 1.1 christos RSA_free() returns no value. 35 1.1 christos 36 1.1 christos =head1 SEE ALSO 37 1.1 christos 38 1.1 christos L<ERR_get_error(3)>, 39 1.1 christos L<RSA_generate_key(3)>, 40 1.1 christos L<RSA_new_method(3)> 41 1.1 christos 42 1.1.1.2 christos =head1 HISTORY 43 1.1.1.2 christos 44 1.1.1.2 christos All functions described here were deprecated in OpenSSL 3.0. 45 1.1.1.2 christos For replacement see EVP_PKEY-RSA(7). 46 1.1.1.2 christos 47 1.1 christos =head1 COPYRIGHT 48 1.1 christos 49 1.1.1.2 christos Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. 50 1.1 christos 51 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 52 1.1 christos this file except in compliance with the License. You can obtain a copy 53 1.1 christos in the file LICENSE in the source distribution or at 54 1.1 christos L<https://www.openssl.org/source/license.html>. 55 1.1 christos 56 1.1 christos =cut 57