Skip to content

Commit 91d51bd

Browse files
committed
Expose typedef in header, remove fallback from asn.c
1 parent 0632c2b commit 91d51bd

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

wolfcrypt/src/asn.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31981,15 +31981,6 @@ static int WriteCertBody(DerCert* der, byte* buf)
3198131981

3198231982

3198331983
#if defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_CERT_REQ)
31984-
/* Internal typedef for callback signature - must match wc_SignCertCb in asn_public.h
31985-
* This fallback is needed when WOLFSSL_CERT_SIGN_CB is not defined but
31986-
* MakeSignatureCb is still used internally by the refactored MakeSignature. */
31987-
#ifndef WOLFSSL_CERT_SIGN_CB
31988-
typedef int (*wc_SignCertCb)(const byte* in, word32 inLen,
31989-
byte* out, word32* outLen,
31990-
int sigAlgo, int keyType, void* ctx);
31991-
#endif
31992-
3199331984
/* Forward declaration for internal use */
3199431985
static int MakeSignatureCb(CertSignCtx* certSignCtx, const byte* buf,
3199531986
word32 sz, byte* sig, word32 sigSz, int sigAlgoType, int keyType,

wolfssl/wolfcrypt/asn_public.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ typedef int (wc_pem_password_cb)(char* passwd, int sz, int rw, void* userdata);
233233
#define pem_password_cb wc_pem_password_cb
234234
#endif
235235

236-
#ifdef WOLFSSL_CERT_SIGN_CB
237236
/*!
238237
\ingroup CertManager
239238
\brief Callback function type for certificate/CSR signing.
@@ -273,7 +272,6 @@ typedef int (wc_pem_password_cb)(char* passwd, int sz, int rw, void* userdata);
273272
typedef int (*wc_SignCertCb)(const byte* in, word32 inLen,
274273
byte* out, word32* outLen,
275274
int sigAlgo, int keyType, void* ctx);
276-
#endif /* WOLFSSL_CERT_SIGN_CB */
277275

278276
typedef struct EncryptedInfo {
279277
long consumed; /* tracks PEM bytes consumed */

0 commit comments

Comments
 (0)