summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-12-28 19:18:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-12-28 19:18:48 +0000
commit09ab755c555a96df23b78fb188578b2fba5faae2 (patch)
treed70caa8c199c4dc22e7c2301a554a80c8158c160 /crypto/x509
parentec558b65480cb186979e0c3bf0cf8e36eb49a125 (diff)
ASN1_ITEM versions of sign, verify, pack and unpack.
The old function pointer versions will eventually go away.
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x509.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h
index 24ba8618c2..332cad553a 100644
--- a/crypto/x509/x509.h
+++ b/crypto/x509/x509.h
@@ -913,6 +913,16 @@ int ASN1_digest(int (*i2d)(),const EVP_MD *type,char *data,
int ASN1_sign(int (*i2d)(), X509_ALGOR *algor1, X509_ALGOR *algor2,
ASN1_BIT_STRING *signature,
char *data,EVP_PKEY *pkey, const EVP_MD *type);
+
+int ASN1_item_digest(const ASN1_ITEM *it,const EVP_MD *type,void *data,
+ unsigned char *md,unsigned int *len);
+
+int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,
+ ASN1_BIT_STRING *signature,void *data,EVP_PKEY *pkey);
+
+int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2,
+ ASN1_BIT_STRING *signature,
+ void *data, EVP_PKEY *pkey, const EVP_MD *type);
#endif
int X509_set_version(X509 *x,long version);