summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_locl.h')
-rw-r--r--src/lib/libcrypto/asn1/asn1_locl.h11
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