D | mbedtls_pkcs7.c | 117 static int32_t GetContentInfoType(unsigned char **p, const unsigned char *end, in GetContentInfoType() argument 124 rc = mbedtls_asn1_get_tag(p, end, &seqLen, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE); in GetContentInfoType() 128 unsigned char *start = *p; in GetContentInfoType() 130 rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_OID); in GetContentInfoType() 136 contentType->p = *p; in GetContentInfoType() 137 *hasContent = (seqLen != len + (*p - start)); in GetContentInfoType() 138 *p += len; // pass the oid info to the real content location. in GetContentInfoType() 143 static int32_t GetContentLenOfContentInfo(unsigned char **p, const unsigned char *end, size_t *len) in GetContentLenOfContentInfo() argument 145 …return mbedtls_asn1_get_tag(p, end, len, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_CONTEXT_SPECIFIC); in GetContentLenOfContentInfo() 148 static int32_t ParseSignerVersion(unsigned char **p, const unsigned char *end, SignerInfo *signer) in ParseSignerVersion() argument [all …]
|