mbedtls_asn1_write_oid() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_asn1_write_oid() function

Write an OID tag (#MBEDTLS_ASN1_OID) and data in ASN.1 format.

Syntax

int mbedtls_asn1_write_oid( unsigned char **p,     unsigned char *start,     const char *oid,     size_t oid_len );
Implemented in asn1write.c:182

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

oid

The OID to write.

oid_len

The length of the OID.

Return value

The number of bytes written to \p p on success. A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure.

Notes

This function works backwards in data buffer.

References

LocationReferrerText
asn1write.c:182
int mbedtls_asn1_write_oid( unsigned char **p, unsigned char *start,
asn1write.h:139
int mbedtls_asn1_write_oid( unsigned char **p, unsigned char *start,
asn1write.c:208mbedtls_asn1_write_algorithm_identifier()
MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) );

Call Tree

Functions calling mbedtls_asn1_write_oid()
Functions called by mbedtls_asn1_write_oid()
mbedtls_asn1_write_oid()
Data read by mbedtls_asn1_write_oid()
Data written by mbedtls_asn1_write_oid()
mbedtls_asn1_write_oid()::ret
mbedtls_asn1_write_oid()::len
all items filtered out
mbedtls_asn1_write_oid()
mbedtls_asn1_write_oid()::ret
all items filtered out
Type of mbedtls_asn1_write_oid()
mbedtls_asn1_write_oid()
size_t
all items filtered out