forked from wolfSSL/wolfssl
Expose GetASNInt as part of WOLFSSL_ASN_API
This commit is contained in:
@@ -2562,7 +2562,7 @@ int GetOctetString(const byte* input, word32* inOutIdx, int* len, word32 maxIdx)
|
|||||||
* or invalid use of or missing leading zero.
|
* or invalid use of or missing leading zero.
|
||||||
* Otherwise, 0 to indicate success.
|
* Otherwise, 0 to indicate success.
|
||||||
*/
|
*/
|
||||||
static int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
int GetASNInt(const byte* input, word32* inOutIdx, int* len,
|
||||||
word32 maxIdx)
|
word32 maxIdx)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -2194,6 +2194,11 @@ WOLFSSL_LOCAL int GetMyVersion(const byte* input, word32* inOutIdx,
|
|||||||
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,
|
||||||
|
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,
|
||||||
byte* out, word32* outSz);
|
byte* out, word32* outSz);
|
||||||
|
Reference in New Issue
Block a user