mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
@@ -494,7 +494,10 @@ static int pkcs7_get_signed_data(unsigned char *buf, size_t buflen,
|
|||||||
|
|
||||||
if (p != end_content_info) {
|
if (p != end_content_info) {
|
||||||
/* Determine if valid content is present */
|
/* Determine if valid content is present */
|
||||||
ret = mbedtls_asn1_get_tag(&p, end_content_info, &len, MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_CONTEXT_SPECIFIC);
|
ret = mbedtls_asn1_get_tag(&p,
|
||||||
|
end_content_info,
|
||||||
|
&len,
|
||||||
|
MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_CONTEXT_SPECIFIC);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS7_INVALID_CONTENT_INFO, ret);
|
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS7_INVALID_CONTENT_INFO, ret);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user