[#ASN1_verify] = ASN1_verify :mrdocs: Verify a signature over the DER encoding produced by `i2d` (deprecated). == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int ASN1_verify( xref:i2d_of_void.adoc[i2d_of_void]* i2d, xref:X509_ALGOR.adoc[X509_ALGOR]* algor1, xref:ASN1_BIT_STRING.adoc[ASN1_BIT_STRING]* signature, char* data, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Prefer ASN1_item_verify() for new code. == Return Value 1 if the signature verifies, 0 if it does not, or ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *i2d* | Encoder that writes the signed bytes for `data.` | *algor1* | Signature AlgorithmIdentifier describing the digest/signature pair. | *signature* | BIT STRING holding the signature value. | *data* | Structure passed to `i2d` as the object being signed. | *pkey* | Public key used to verify the signature. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#