forked from wolfSSL/wolfssl
Expose GetASNHeader in both template and original.
This commit is contained in:
@@ -2548,7 +2548,6 @@ int GetOctetString(const byte* input, word32* inOutIdx, int* len, word32 maxIdx)
|
|||||||
return GetASNHeader(input, ASN_OCTET_STRING, inOutIdx, len, maxIdx);
|
return GetASNHeader(input, ASN_OCTET_STRING, inOutIdx, len, maxIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WOLFSSL_ASN_TEMPLATE
|
|
||||||
/* Get the DER/BER encoding of an ASN.1 INTEGER header.
|
/* Get the DER/BER encoding of an ASN.1 INTEGER header.
|
||||||
*
|
*
|
||||||
* Removes the leading zero byte when found.
|
* Removes the leading zero byte when found.
|
||||||
@@ -2598,6 +2597,7 @@ int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WOLFSSL_ASN_TEMPLATE
|
||||||
#ifndef NO_CERTS
|
#ifndef NO_CERTS
|
||||||
/* Get the DER/BER encoding of an ASN.1 INTEGER that has a value of no more than
|
/* Get the DER/BER encoding of an ASN.1 INTEGER that has a value of no more than
|
||||||
* 7 bits.
|
* 7 bits.
|
||||||
|
@@ -2193,11 +2193,8 @@ WOLFSSL_LOCAL int GetMyVersion(const byte* input, word32* inOutIdx,
|
|||||||
int* version, word32 maxIdx);
|
int* version, word32 maxIdx);
|
||||||
WOLFSSL_LOCAL int GetInt(mp_int* mpi, const byte* input, word32* inOutIdx,
|
WOLFSSL_LOCAL int GetInt(mp_int* mpi, const byte* input, word32* inOutIdx,
|
||||||
word32 maxIdx);
|
word32 maxIdx);
|
||||||
|
|
||||||
#ifndef WOLFSSL_ASN_TEMPLATE
|
|
||||||
WOLFSSL_ASN_API int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
WOLFSSL_ASN_API int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
||||||
word32 maxIdx);
|
word32 maxIdx);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_OID_ENCODING
|
#ifdef HAVE_OID_ENCODING
|
||||||
WOLFSSL_API int wc_EncodeObjectId(const word16* in, word32 inSz,
|
WOLFSSL_API int wc_EncodeObjectId(const word16* in, word32 inSz,
|
||||||
|
Reference in New Issue
Block a user