diff options
| author | djm <> | 2012-10-13 21:23:50 +0000 |
|---|---|---|
| committer | djm <> | 2012-10-13 21:23:50 +0000 |
| commit | d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df (patch) | |
| tree | 10ebe51c3542099b0ab8325d8f322372375dc3b4 /src/lib/libcrypto/asn1/asn1_locl.h | |
| parent | bc685bd401e5657f7fb51b4e1a62a7a5c5ea4098 (diff) | |
| parent | 228cae30b117c2493f69ad3c195341cd6ec8d430 (diff) | |
| download | openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.gz openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.bz2 openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_locl.h')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_locl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h index 5aa65e28f5..9fcf0d9530 100644 --- a/src/lib/libcrypto/asn1/asn1_locl.h +++ b/src/lib/libcrypto/asn1/asn1_locl.h | |||
| @@ -102,6 +102,10 @@ struct evp_pkey_asn1_method_st | |||
| 102 | int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b); | 102 | int (*param_cmp)(const EVP_PKEY *a, const EVP_PKEY *b); |
| 103 | int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent, | 103 | int (*param_print)(BIO *out, const EVP_PKEY *pkey, int indent, |
| 104 | ASN1_PCTX *pctx); | 104 | ASN1_PCTX *pctx); |
| 105 | int (*sig_print)(BIO *out, | ||
| 106 | const X509_ALGOR *sigalg, const ASN1_STRING *sig, | ||
| 107 | int indent, ASN1_PCTX *pctx); | ||
| 108 | |||
| 105 | 109 | ||
| 106 | void (*pkey_free)(EVP_PKEY *pkey); | 110 | void (*pkey_free)(EVP_PKEY *pkey); |
| 107 | int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2); | 111 | int (*pkey_ctrl)(EVP_PKEY *pkey, int op, long arg1, void *arg2); |
| @@ -111,6 +115,13 @@ struct evp_pkey_asn1_method_st | |||
| 111 | int (*old_priv_decode)(EVP_PKEY *pkey, | 115 | int (*old_priv_decode)(EVP_PKEY *pkey, |
| 112 | const unsigned char **pder, int derlen); | 116 | const unsigned char **pder, int derlen); |
| 113 | int (*old_priv_encode)(const EVP_PKEY *pkey, unsigned char **pder); | 117 | int (*old_priv_encode)(const EVP_PKEY *pkey, unsigned char **pder); |
| 118 | /* Custom ASN1 signature verification */ | ||
| 119 | int (*item_verify)(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, | ||
| 120 | X509_ALGOR *a, ASN1_BIT_STRING *sig, | ||
| 121 | EVP_PKEY *pkey); | ||
| 122 | int (*item_sign)(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, | ||
| 123 | X509_ALGOR *alg1, X509_ALGOR *alg2, | ||
| 124 | ASN1_BIT_STRING *sig); | ||
| 114 | 125 | ||
| 115 | } /* EVP_PKEY_ASN1_METHOD */; | 126 | } /* EVP_PKEY_ASN1_METHOD */; |
| 116 | 127 | ||
