GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OPENSSL_MALLOC(3) FreeBSD Library Functions Manual OPENSSL_MALLOC(3)

OPENSSL_malloc, OPENSSL_free, OPENSSL_strdup, CRYPTO_malloc, CRYPTO_free, CRYPTO_strduplegacy OpenSSL memory allocation wrappers

#include <openssl/crypto.h>

void *
OPENSSL_malloc(size_t num);

void
OPENSSL_free(void *addr);

char *
OPENSSL_strdup(const char *str);

void *
CRYPTO_malloc(size_t num, const char *file, int line);

void
CRYPTO_free(void *str, const char *, int);

char *
CRYPTO_strdup(const char *p, const char *file, int line);

Do not use any of the interfaces documented here in new code. They are provided purely for compatibility with legacy application code.

These functions are wrappers around the corresponding standard malloc(3), free(3), and strdup(3) functions.

The () functions are implemented as macros.

These functions return the same type and value as the corresponding standard functions.

crypto(3)

CRYPTO_malloc() and CRYPTO_free() first appeared in SSLeay 0.6.4 and have been available since OpenBSD 2.4.

OPENSSL_malloc() and OPENSSL_free() first appeared in OpenSSL 0.9.6 and have been available since OpenBSD 2.9.

CRYPTO_strdup() and OPENSSL_strdup() first appeared in OpenSSL 0.9.8j and have been available since OpenBSD 4.5.

If interoperability with other implementations is required, memory returned by the library as bare pointers must be freed with OPENSSL_free().

April 4, 2024 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.