diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index d919881f86..7390aaebfb 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -1,25 +1,25 @@ | |||
| 1 | /* $OpenBSD: x509.h,v 1.119 2024/08/31 10:49:35 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.120 2025/03/01 11:31: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 | * |
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -57,7 +57,7 @@ | |||
| 57 | */ | 57 | */ |
| 58 | /* ==================================================================== | 58 | /* ==================================================================== |
| 59 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 59 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
| 60 | * ECDH support in OpenSSL originally developed by | 60 | * ECDH support in OpenSSL originally developed by |
| 61 | * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. | 61 | * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. |
| 62 | */ | 62 | */ |
| 63 | 63 | ||
| @@ -179,7 +179,7 @@ DECLARE_STACK_OF(X509) | |||
| 179 | #define X509_FLAG_NO_AUX (1L << 10) | 179 | #define X509_FLAG_NO_AUX (1L << 10) |
| 180 | #define X509_FLAG_NO_ATTRIBUTES (1L << 11) | 180 | #define X509_FLAG_NO_ATTRIBUTES (1L << 11) |
| 181 | 181 | ||
| 182 | /* Flags specific to X509_NAME_print_ex() */ | 182 | /* Flags specific to X509_NAME_print_ex() */ |
| 183 | 183 | ||
| 184 | /* The field separator information */ | 184 | /* The field separator information */ |
| 185 | 185 | ||
| @@ -527,7 +527,7 @@ DSA * d2i_DSA_PUBKEY(DSA **a,const unsigned char **pp, | |||
| 527 | #endif | 527 | #endif |
| 528 | #ifndef OPENSSL_NO_EC | 528 | #ifndef OPENSSL_NO_EC |
| 529 | int i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp); | 529 | int i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp); |
| 530 | EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, | 530 | EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, |
| 531 | long length); | 531 | long length); |
| 532 | #endif | 532 | #endif |
| 533 | 533 | ||
| @@ -676,31 +676,31 @@ int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, | |||
| 676 | void *data, EVP_PKEY *pkey, const EVP_MD *type); | 676 | void *data, EVP_PKEY *pkey, const EVP_MD *type); |
| 677 | int ASN1_item_sign_ctx(const ASN1_ITEM *it, | 677 | int ASN1_item_sign_ctx(const ASN1_ITEM *it, |
| 678 | X509_ALGOR *algor1, X509_ALGOR *algor2, | 678 | X509_ALGOR *algor1, X509_ALGOR *algor2, |
| 679 | ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx); | 679 | ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx); |
| 680 | #endif | 680 | #endif |
| 681 | 681 | ||
| 682 | const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); | 682 | const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x); |
| 683 | void X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **issuerUID, | 683 | void X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **issuerUID, |
| 684 | const ASN1_BIT_STRING **subjectUID); | 684 | const ASN1_BIT_STRING **subjectUID); |
| 685 | const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x); | 685 | const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x); |
| 686 | int X509_set_version(X509 *x, long version); | 686 | int X509_set_version(X509 *x, long version); |
| 687 | long X509_get_version(const X509 *x); | 687 | long X509_get_version(const X509 *x); |
| 688 | int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); | 688 | int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); |
| 689 | ASN1_INTEGER * X509_get_serialNumber(X509 *x); | 689 | ASN1_INTEGER * X509_get_serialNumber(X509 *x); |
| 690 | const ASN1_INTEGER *X509_get0_serialNumber(const X509 *x); | 690 | const ASN1_INTEGER *X509_get0_serialNumber(const X509 *x); |
| 691 | int X509_set_issuer_name(X509 *x, X509_NAME *name); | 691 | int X509_set_issuer_name(X509 *x, X509_NAME *name); |
| 692 | X509_NAME * X509_get_issuer_name(const X509 *a); | 692 | X509_NAME * X509_get_issuer_name(const X509 *a); |
| 693 | int X509_set_subject_name(X509 *x, X509_NAME *name); | 693 | int X509_set_subject_name(X509 *x, X509_NAME *name); |
| 694 | X509_NAME * X509_get_subject_name(const X509 *a); | 694 | X509_NAME * X509_get_subject_name(const X509 *a); |
| 695 | int X509_set_notBefore(X509 *x, const ASN1_TIME *tm); | 695 | int X509_set_notBefore(X509 *x, const ASN1_TIME *tm); |
| 696 | int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm); | 696 | int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm); |
| 697 | int X509_set_notAfter(X509 *x, const ASN1_TIME *tm); | 697 | int X509_set_notAfter(X509 *x, const ASN1_TIME *tm); |
| 698 | int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm); | 698 | int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm); |
| 699 | const ASN1_TIME *X509_get0_notBefore(const X509 *x); | 699 | const ASN1_TIME *X509_get0_notBefore(const X509 *x); |
| 700 | ASN1_TIME *X509_getm_notBefore(const X509 *x); | 700 | ASN1_TIME *X509_getm_notBefore(const X509 *x); |
| 701 | const ASN1_TIME *X509_get0_notAfter(const X509 *x); | 701 | const ASN1_TIME *X509_get0_notAfter(const X509 *x); |
| 702 | ASN1_TIME *X509_getm_notAfter(const X509 *x); | 702 | ASN1_TIME *X509_getm_notAfter(const X509 *x); |
| 703 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); | 703 | int X509_set_pubkey(X509 *x, EVP_PKEY *pkey); |
| 704 | EVP_PKEY * X509_get_pubkey(X509 *x); | 704 | EVP_PKEY * X509_get_pubkey(X509 *x); |
| 705 | EVP_PKEY * X509_get0_pubkey(const X509 *x); | 705 | EVP_PKEY * X509_get0_pubkey(const X509 *x); |
| 706 | ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); | 706 | ASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x); |
| @@ -799,21 +799,21 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long | |||
| 799 | int X509_REQ_print(BIO *bp,X509_REQ *req); | 799 | int X509_REQ_print(BIO *bp,X509_REQ *req); |
| 800 | #endif | 800 | #endif |
| 801 | 801 | ||
| 802 | int X509_NAME_entry_count(const X509_NAME *name); | 802 | int X509_NAME_entry_count(const X509_NAME *name); |
| 803 | int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, | 803 | int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, |
| 804 | char *buf,int len); | 804 | char *buf,int len); |
| 805 | int X509_NAME_get_text_by_OBJ(X509_NAME *name, | 805 | int X509_NAME_get_text_by_OBJ(X509_NAME *name, |
| 806 | const ASN1_OBJECT *obj, char *buf,int len); | 806 | const ASN1_OBJECT *obj, char *buf,int len); |
| 807 | 807 | ||
| 808 | /* NOTE: you should be passing -1, not 0 as lastpos. The functions that use | 808 | /* NOTE: you should be passing -1, not 0 as lastpos. The functions that use |
| 809 | * lastpos, search after that position on. */ | 809 | * lastpos, search after that position on. */ |
| 810 | int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, | 810 | int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, |
| 811 | int lastpos); | 811 | int lastpos); |
| 812 | int X509_NAME_get_index_by_OBJ(const X509_NAME *name, | 812 | int X509_NAME_get_index_by_OBJ(const X509_NAME *name, |
| 813 | const ASN1_OBJECT *obj, int lastpos); | 813 | const ASN1_OBJECT *obj, int lastpos); |
| 814 | X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); | 814 | X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); |
| 815 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); | 815 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); |
| 816 | int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, | 816 | int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, |
| 817 | int loc, int set); | 817 | int loc, int set); |
| 818 | int X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, | 818 | int X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, |
| 819 | int type, const unsigned char *bytes, int len, int loc, int set); | 819 | int type, const unsigned char *bytes, int len, int loc, int set); |
| @@ -828,9 +828,9 @@ int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, | |||
| 828 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, | 828 | X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, |
| 829 | const ASN1_OBJECT *obj, int type, | 829 | const ASN1_OBJECT *obj, int type, |
| 830 | const unsigned char *bytes, int len); | 830 | const unsigned char *bytes, int len); |
| 831 | int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, | 831 | int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, |
| 832 | const ASN1_OBJECT *obj); | 832 | const ASN1_OBJECT *obj); |
| 833 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, | 833 | int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, |
| 834 | const unsigned char *bytes, int len); | 834 | const unsigned char *bytes, int len); |
| 835 | ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne); | 835 | ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne); |
| 836 | ASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne); | 836 | ASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne); |
