Skip to content

Commit 32c6f8f

Browse files
committed
Fix prefix errors
1 parent 995e63f commit 32c6f8f

2 files changed

Lines changed: 20 additions & 15 deletions

File tree

wolfssl/internal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6694,6 +6694,10 @@ WOLFSSL_LOCAL WC_RNG* WOLFSSL_RSA_GetRNG(WOLFSSL_RSA *rsa, WC_RNG **tmpRNG,
66946694
DecodedCert* cert);
66956695
#endif
66966696

6697+
#ifdef WOLFSSL_API_PREFIX_MAP
6698+
#define GetCAByAKID wolfSSL_GetCAByAKID
6699+
#endif
6700+
66976701
#ifndef GetCA
66986702
WOLFSSL_LOCAL Signer* GetCA(void* vp, byte* hash);
66996703
#endif

wolfssl/wolfcrypt/asn.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,21 +2059,6 @@ typedef enum MimeStatus
20592059
} MimeStatus;
20602060
#endif /* HAVE_SMIME */
20612061

2062-
WOLFSSL_LOCAL int HashIdAlg(word32 oidSum);
2063-
WOLFSSL_TEST_VIS int CalcHashId(const byte* data, word32 len, byte* hash);
2064-
WOLFSSL_LOCAL int CalcHashId_ex(const byte* data, word32 len, byte* hash,
2065-
int hashAlg);
2066-
WOLFSSL_LOCAL int GetHashId(const byte* id, int length, byte* hash,
2067-
int hashAlg);
2068-
WOLFSSL_LOCAL int GetName(DecodedCert* cert, int nameType, int maxIdx);
2069-
2070-
#ifdef ASN_BER_TO_DER
2071-
WOLFSSL_API int wc_BerToDer(const byte* ber, word32 berSz, byte* der,
2072-
word32* derSz);
2073-
#endif
2074-
WOLFSSL_LOCAL int StreamOctetString(const byte* inBuf, word32 inBufSz,
2075-
byte* out, word32* outSz, word32* idx);
2076-
20772062
#ifdef WOLFSSL_API_PREFIX_MAP
20782063
#define FreeAltNames wc_FreeAltNames
20792064
#define AltNameNew wc_AltNameNew
@@ -2098,8 +2083,24 @@ WOLFSSL_LOCAL int StreamOctetString(const byte* inBuf, word32 inBufSz,
20982083
#define GetASNTag wc_GetASNTag
20992084
#define SetAlgoID wc_SetAlgoID
21002085
#define SetAsymKeyDer wc_SetAsymKeyDer
2086+
#define CalcHashId wc_CalcHashId
21012087
#endif /* WOLFSSL_API_PREFIX_MAP */
21022088

2089+
WOLFSSL_LOCAL int HashIdAlg(word32 oidSum);
2090+
WOLFSSL_TEST_VIS int CalcHashId(const byte* data, word32 len, byte* hash);
2091+
WOLFSSL_LOCAL int CalcHashId_ex(const byte* data, word32 len, byte* hash,
2092+
int hashAlg);
2093+
WOLFSSL_LOCAL int GetHashId(const byte* id, int length, byte* hash,
2094+
int hashAlg);
2095+
WOLFSSL_LOCAL int GetName(DecodedCert* cert, int nameType, int maxIdx);
2096+
2097+
#ifdef ASN_BER_TO_DER
2098+
WOLFSSL_API int wc_BerToDer(const byte* ber, word32 berSz, byte* der,
2099+
word32* derSz);
2100+
#endif
2101+
WOLFSSL_LOCAL int StreamOctetString(const byte* inBuf, word32 inBufSz,
2102+
byte* out, word32* outSz, word32* idx);
2103+
21032104
WOLFSSL_ASN_API void FreeAltNames(DNS_entry* altNames, void* heap);
21042105
WOLFSSL_ASN_API DNS_entry* AltNameNew(void* heap);
21052106
WOLFSSL_ASN_API DNS_entry* AltNameDup(DNS_entry* from, void* heap);

0 commit comments

Comments
 (0)