Skip to content

Commit

Permalink
Fix openssl_extra without PKCS12.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Nov 15, 2024
1 parent 52d168c commit 6309e5c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions wolfssl/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3271,15 +3271,19 @@ WOLFSSL_API WOLFSSL_X509* wolfSSL_X509_REQ_load_certificate_buffer(
#endif /* OPENSSL_EXTRA || OPENSSL_EXTRA_X509_SMALL */


#if defined(HAVE_PKCS12) && defined(OPENSSL_EXTRA)
#ifdef OPENSSL_EXTRA
/* PKCS12 compatibility */
WOLFSSL_API WC_PKCS12* wolfSSL_d2i_PKCS12_bio(WOLFSSL_BIO* bio,
WC_PKCS12** pkcs12);
WOLFSSL_API int wolfSSL_i2d_PKCS12_bio(WOLFSSL_BIO *bio, WC_PKCS12 *pkcs12);
WOLFSSL_API void wolfSSL_PKCS12_PBE_add(void);
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
WOLFSSL_API WOLFSSL_X509_PKCS12* wolfSSL_d2i_PKCS12_fp(XFILE fp,
WOLFSSL_X509_PKCS12** pkcs12);
#endif

#ifdef HAVE_PKCS12
WOLFSSL_API WC_PKCS12* wolfSSL_d2i_PKCS12_bio(WOLFSSL_BIO* bio,
WC_PKCS12** pkcs12);
WOLFSSL_API int wolfSSL_i2d_PKCS12_bio(WOLFSSL_BIO *bio, WC_PKCS12 *pkcs12);

WOLFSSL_API int wolfSSL_PKCS12_parse(WC_PKCS12* pkcs12, const char* psw,
WOLFSSL_EVP_PKEY** pkey, WOLFSSL_X509** cert,
WOLF_STACK_OF(WOLFSSL_X509)** ca);
Expand All @@ -3289,8 +3293,8 @@ WOLFSSL_API WC_PKCS12* wolfSSL_PKCS12_create(char* pass, char* name,
WOLFSSL_EVP_PKEY* pkey, WOLFSSL_X509* cert,
WOLF_STACK_OF(WOLFSSL_X509)* ca,
int keyNID, int certNID, int itt, int macItt, int keytype);
WOLFSSL_API void wolfSSL_PKCS12_PBE_add(void);
#endif /* HAVE_PKCS12 && OPENSSL_EXTRA */
#endif /* HAVE_PKCS12 */
#endif /* OPENSSL_EXTRA */


#ifndef NO_DH
Expand Down

0 comments on commit 6309e5c

Please sign in to comment.