[#ASN1_verify]
= ASN1&lowbar;verify
:mrdocs:

Verify a signature over the DER encoding produced by `i2d` (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;x509&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
ASN1&lowbar;verify(
    xref:i2d_of_void.adoc[i2d&lowbar;of&lowbar;void]* i2d,
    xref:X509_ALGOR.adoc[X509&lowbar;ALGOR]* algor1,
    xref:ASN1_BIT_STRING.adoc[ASN1&lowbar;BIT&lowbar;STRING]* signature,
    char* data,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Description

Prefer ASN1&lowbar;item&lowbar;verify() for new code&period;

== Return Value

1 if the signature verifies, 0 if it does not, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *i2d*
| Encoder that writes the signed bytes for `data&period;`
| *algor1*
| Signature AlgorithmIdentifier describing the digest&sol;signature pair&period;
| *signature*
| BIT STRING holding the signature value&period;
| *data*
| Structure passed to `i2d` as the object being signed&period;
| *pkey*
| Public key used to verify the signature&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
