CRYPTO_memdup
CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);