Skip to content

Commit fddda8f

Browse files
committed
Expose GetASNHeader in both template and original.
1 parent 6665f24 commit fddda8f

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,6 @@ int GetOctetString(const byte* input, word32* inOutIdx, int* len, word32 maxIdx)
25482548
return GetASNHeader(input, ASN_OCTET_STRING, inOutIdx, len, maxIdx);
25492549
}
25502550

2551-
#ifndef WOLFSSL_ASN_TEMPLATE
25522551
/* Get the DER/BER encoding of an ASN.1 INTEGER header.
25532552
*
25542553
* Removes the leading zero byte when found.
@@ -2598,6 +2597,7 @@ int GetASNInt(const byte* input, word32* inOutIdx, int* len,
25982597
return 0;
25992598
}
26002599

2600+
#ifndef WOLFSSL_ASN_TEMPLATE
26012601
#ifndef NO_CERTS
26022602
/* Get the DER/BER encoding of an ASN.1 INTEGER that has a value of no more than
26032603
* 7 bits.

wolfssl/wolfcrypt/asn.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,11 +2193,8 @@ WOLFSSL_LOCAL int GetMyVersion(const byte* input, word32* inOutIdx,
21932193
int* version, word32 maxIdx);
21942194
WOLFSSL_LOCAL int GetInt(mp_int* mpi, const byte* input, word32* inOutIdx,
21952195
word32 maxIdx);
2196-
2197-
#ifndef WOLFSSL_ASN_TEMPLATE
21982196
WOLFSSL_ASN_API int GetASNInt(const byte* input, word32* inOutIdx, int* len,
21992197
word32 maxIdx);
2200-
#endif
22012198

22022199
#ifdef HAVE_OID_ENCODING
22032200
WOLFSSL_API int wc_EncodeObjectId(const word16* in, word32 inSz,

0 commit comments

Comments
 (0)