2
0

RSA_new.pod 1.4 KB

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