diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index b47bf99104..b2eeac92ae 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509.h,v 1.45 2018/05/01 16:14:54 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.46 2018/05/01 19:01:28 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -654,7 +654,8 @@ int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey); | |||
| 654 | int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki); | 654 | int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki); |
| 655 | 655 | ||
| 656 | int X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent); | 656 | int X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent); |
| 657 | int X509_signature_print(BIO *bp, X509_ALGOR *alg, ASN1_STRING *sig); | 657 | int X509_signature_print(BIO *bp, const X509_ALGOR *alg, |
| 658 | const ASN1_STRING *sig); | ||
| 658 | 659 | ||
| 659 | int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md); | 660 | int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md); |
| 660 | int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx); | 661 | int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx); |
| @@ -758,8 +759,8 @@ X509_CRL *X509_CRL_dup(X509_CRL *crl); | |||
| 758 | X509_REQ *X509_REQ_dup(X509_REQ *req); | 759 | X509_REQ *X509_REQ_dup(X509_REQ *req); |
| 759 | X509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn); | 760 | X509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn); |
| 760 | int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval); | 761 | int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval); |
| 761 | void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval, | 762 | void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype, const void **ppval, |
| 762 | X509_ALGOR *algor); | 763 | const X509_ALGOR *algor); |
| 763 | void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md); | 764 | void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md); |
| 764 | int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b); | 765 | int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b); |
| 765 | 766 | ||
| @@ -907,14 +908,14 @@ void X509_get0_signature(const ASN1_BIT_STRING **psig, | |||
| 907 | const X509_ALGOR **palg, const X509 *x); | 908 | const X509_ALGOR **palg, const X509 *x); |
| 908 | int X509_get_signature_nid(const X509 *x); | 909 | int X509_get_signature_nid(const X509 *x); |
| 909 | 910 | ||
| 910 | int X509_alias_set1(X509 *x, unsigned char *name, int len); | 911 | int X509_alias_set1(X509 *x, const unsigned char *name, int len); |
| 911 | int X509_keyid_set1(X509 *x, unsigned char *id, int len); | 912 | int X509_keyid_set1(X509 *x, const unsigned char *id, int len); |
| 912 | unsigned char *X509_alias_get0(X509 *x, int *len); | 913 | unsigned char *X509_alias_get0(X509 *x, int *len); |
| 913 | unsigned char *X509_keyid_get0(X509 *x, int *len); | 914 | unsigned char *X509_keyid_get0(X509 *x, int *len); |
| 914 | int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int); | 915 | int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int); |
| 915 | int X509_TRUST_set(int *t, int trust); | 916 | int X509_TRUST_set(int *t, int trust); |
| 916 | int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj); | 917 | int X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj); |
| 917 | int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj); | 918 | int X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj); |
| 918 | void X509_trust_clear(X509 *x); | 919 | void X509_trust_clear(X509 *x); |
| 919 | void X509_reject_clear(X509 *x); | 920 | void X509_reject_clear(X509 *x); |
| 920 | 921 | ||
| @@ -999,7 +1000,7 @@ const ASN1_TIME *X509_get0_notAfter(const X509 *x); | |||
| 999 | ASN1_TIME *X509_getm_notAfter(const X509 *x); | 1000 | ASN1_TIME *X509_getm_notAfter(const X509 *x); |
| 1000 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); | 1001 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); |
| 1001 | EVP_PKEY * X509_get_pubkey(X509 *x); | 1002 | EVP_PKEY * X509_get_pubkey(X509 *x); |
| 1002 | EVP_PKEY * X509_get0_pubkey(X509 *x); | 1003 | EVP_PKEY * X509_get0_pubkey(const X509 *x); |
| 1003 | ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); | 1004 | ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); |
| 1004 | int X509_certificate_type(X509 *x,EVP_PKEY *pubkey /* optional */); | 1005 | int X509_certificate_type(X509 *x,EVP_PKEY *pubkey /* optional */); |
| 1005 | 1006 | ||
| @@ -1121,7 +1122,7 @@ int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, | |||
| 1121 | ASN1_OBJECT *obj); | 1122 | ASN1_OBJECT *obj); |
| 1122 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, | 1123 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, |
| 1123 | const unsigned char *bytes, int len); | 1124 | const unsigned char *bytes, int len); |
| 1124 | ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne); | 1125 | ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne); |
| 1125 | ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); | 1126 | ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); |
| 1126 | int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne); | 1127 | int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne); |
| 1127 | 1128 | ||
