summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/crypto/objects/objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/crypto/objects/objects.h')
-rw-r--r--src/lib/libssl/src/crypto/objects/objects.h54
1 files changed, 26 insertions, 28 deletions
diff --git a/src/lib/libssl/src/crypto/objects/objects.h b/src/lib/libssl/src/crypto/objects/objects.h
index bd0ee52feb..fa84b67182 100644
--- a/src/lib/libssl/src/crypto/objects/objects.h
+++ b/src/lib/libssl/src/crypto/objects/objects.h
@@ -5,21 +5,21 @@
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
@@ -387,7 +387,7 @@
387#define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64" 387#define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64"
388#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC" 388#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC"
389#define NID_pbeWithSHA1AndRC2_CBC 68 389#define NID_pbeWithSHA1AndRC2_CBC 68
390#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs,5L,11L 390#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs,5L,11L
391 391
392/* proposed by microsoft to RSA as pbeWithSHA1AndRC4: it is now 392/* proposed by microsoft to RSA as pbeWithSHA1AndRC4: it is now
393 * defined explicitly in PKCS#5 v2.0 as id-PBKDF2 which is something 393 * defined explicitly in PKCS#5 v2.0 as id-PBKDF2 which is something
@@ -395,7 +395,7 @@
395 */ 395 */
396#define LN_id_pbkdf2 "PBKDF2" 396#define LN_id_pbkdf2 "PBKDF2"
397#define NID_id_pbkdf2 69 397#define NID_id_pbkdf2 69
398#define OBJ_id_pbkdf2 OBJ_pkcs,5L,12L 398#define OBJ_id_pbkdf2 OBJ_pkcs,5L,12L
399 399
400#define SN_dsaWithSHA1_2 "DSA-SHA1-old" 400#define SN_dsaWithSHA1_2 "DSA-SHA1-old"
401#define LN_dsaWithSHA1_2 "dsaWithSHA1-old" 401#define LN_dsaWithSHA1_2 "dsaWithSHA1-old"
@@ -976,29 +976,28 @@
976extern "C" { 976extern "C" {
977#endif 977#endif
978 978
979typedef struct obj_name_st 979typedef struct obj_name_st {
980 {
981 int type; 980 int type;
982 int alias; 981 int alias;
983 const char *name; 982 const char *name;
984 const char *data; 983 const char *data;
985 } OBJ_NAME; 984} OBJ_NAME;
986 985
987#define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c) 986#define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)
988 987
989 988
990int OBJ_NAME_init(void); 989int OBJ_NAME_init(void);
991int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), 990int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
992 int (*cmp_func)(const char *, const char *), 991 int (*cmp_func)(const char *, const char *),
993 void (*free_func)(const char *, int, const char *)); 992 void (*free_func)(const char *, int, const char *));
994const char *OBJ_NAME_get(const char *name,int type); 993const char *OBJ_NAME_get(const char *name, int type);
995int OBJ_NAME_add(const char *name,int type,const char *data); 994int OBJ_NAME_add(const char *name, int type, const char *data);
996int OBJ_NAME_remove(const char *name,int type); 995int OBJ_NAME_remove(const char *name, int type);
997void OBJ_NAME_cleanup(int type); /* -1 for everything */ 996void OBJ_NAME_cleanup(int type); /* -1 for everything */
998void OBJ_NAME_do_all(int type,void (*fn)(const OBJ_NAME *,void *arg), 997void OBJ_NAME_do_all(int type, void (*fn)(const OBJ_NAME *, void *arg),
999 void *arg); 998 void *arg);
1000void OBJ_NAME_do_all_sorted(int type,void (*fn)(const OBJ_NAME *,void *arg), 999void OBJ_NAME_do_all_sorted(int type, void (*fn)(const OBJ_NAME *, void *arg),
1001 void *arg); 1000 void *arg);
1002 1001
1003ASN1_OBJECT * OBJ_dup(const ASN1_OBJECT *o); 1002ASN1_OBJECT * OBJ_dup(const ASN1_OBJECT *o);
1004ASN1_OBJECT * OBJ_nid2obj(int n); 1003ASN1_OBJECT * OBJ_nid2obj(int n);
@@ -1010,13 +1009,12 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
1010int OBJ_txt2nid(const char *s); 1009int OBJ_txt2nid(const char *s);
1011int OBJ_ln2nid(const char *s); 1010int OBJ_ln2nid(const char *s);
1012int OBJ_sn2nid(const char *s); 1011int OBJ_sn2nid(const char *s);
1013int OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b); 1012int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
1014const void * OBJ_bsearch_(const void *key,const void *base,int num,int size, 1013const void * OBJ_bsearch_(const void *key, const void *base, int num,
1015 int (*cmp)(const void *, const void *)); 1014 int size, int (*cmp)(const void *, const void *));
1016const void * OBJ_bsearch_ex_(const void *key,const void *base,int num, 1015const void * OBJ_bsearch_ex_(const void *key, const void *base, int num,
1017 int size, 1016 int size, int (*cmp)(const void *, const void *),
1018 int (*cmp)(const void *, const void *), 1017 int flags);
1019 int flags);
1020 1018
1021#define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \ 1019#define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \
1022 static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \ 1020 static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \
@@ -1099,7 +1097,7 @@ const void * OBJ_bsearch_ex_(const void *key,const void *base,int num,
1099 1097
1100int OBJ_new_nid(int num); 1098int OBJ_new_nid(int num);
1101int OBJ_add_object(const ASN1_OBJECT *obj); 1099int OBJ_add_object(const ASN1_OBJECT *obj);
1102int OBJ_create(const char *oid,const char *sn,const char *ln); 1100int OBJ_create(const char *oid, const char *sn, const char *ln);
1103void OBJ_cleanup(void ); 1101void OBJ_cleanup(void );
1104int OBJ_create_objects(BIO *in); 1102int OBJ_create_objects(BIO *in);
1105 1103