Skip to content

Commit 6665f24

Browse files
committed
Expose GetASNInt as part of WOLFSSL_ASN_API
1 parent ffd6c2b commit 6665f24

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ int GetOctetString(const byte* input, word32* inOutIdx, int* len, word32 maxIdx)
25622562
* or invalid use of or missing leading zero.
25632563
* Otherwise, 0 to indicate success.
25642564
*/
2565-
static int GetASNInt(const byte* input, word32* inOutIdx, int* len,
2565+
int GetASNInt(const byte* input, word32* inOutIdx, int* len,
25662566
word32 maxIdx)
25672567
{
25682568
int ret;

wolfssl/wolfcrypt/asn.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,6 +2194,11 @@ WOLFSSL_LOCAL int GetMyVersion(const byte* input, word32* inOutIdx,
21942194
WOLFSSL_LOCAL int GetInt(mp_int* mpi, const byte* input, word32* inOutIdx,
21952195
word32 maxIdx);
21962196

2197+
#ifndef WOLFSSL_ASN_TEMPLATE
2198+
WOLFSSL_ASN_API int GetASNInt(const byte* input, word32* inOutIdx, int* len,
2199+
word32 maxIdx);
2200+
#endif
2201+
21972202
#ifdef HAVE_OID_ENCODING
21982203
WOLFSSL_API int wc_EncodeObjectId(const word16* in, word32 inSz,
21992204
byte* out, word32* outSz);

0 commit comments

Comments
 (0)