CRYPTO_strndup
CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);