diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/objects/objects.h')
-rw-r--r-- | src/lib/libssl/src/crypto/objects/objects.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libssl/src/crypto/objects/objects.h b/src/lib/libssl/src/crypto/objects/objects.h index 95c8a21568..c099e2e84e 100644 --- a/src/lib/libssl/src/crypto/objects/objects.h +++ b/src/lib/libssl/src/crypto/objects/objects.h | |||
@@ -59,10 +59,11 @@ | |||
59 | #ifndef HEADER_OBJECTS_H | 59 | #ifndef HEADER_OBJECTS_H |
60 | #define HEADER_OBJECTS_H | 60 | #define HEADER_OBJECTS_H |
61 | 61 | ||
62 | #ifdef __cplusplus | 62 | #define USE_OBJ_MAC |
63 | extern "C" { | ||
64 | #endif | ||
65 | 63 | ||
64 | #ifdef USE_OBJ_MAC | ||
65 | #include <openssl/obj_mac.h> | ||
66 | #else | ||
66 | #define SN_undef "UNDEF" | 67 | #define SN_undef "UNDEF" |
67 | #define LN_undef "undefined" | 68 | #define LN_undef "undefined" |
68 | #define NID_undef 0 | 69 | #define NID_undef 0 |
@@ -953,6 +954,7 @@ extern "C" { | |||
953 | #define LN_OCSP_sign "OCSP Signing" | 954 | #define LN_OCSP_sign "OCSP Signing" |
954 | #define NID_OCSP_sign 180 | 955 | #define NID_OCSP_sign 180 |
955 | #define OBJ_OCSP_sign OBJ_id_kp,9L | 956 | #define OBJ_OCSP_sign OBJ_id_kp,9L |
957 | #endif /* USE_OBJ_MAC */ | ||
956 | 958 | ||
957 | #include <openssl/bio.h> | 959 | #include <openssl/bio.h> |
958 | #include <openssl/asn1.h> | 960 | #include <openssl/asn1.h> |
@@ -967,6 +969,10 @@ extern "C" { | |||
967 | #define OBJ_NAME_ALIAS 0x8000 | 969 | #define OBJ_NAME_ALIAS 0x8000 |
968 | 970 | ||
969 | 971 | ||
972 | #ifdef __cplusplus | ||
973 | extern "C" { | ||
974 | #endif | ||
975 | |||
970 | typedef struct obj_name_st | 976 | typedef struct obj_name_st |
971 | { | 977 | { |
972 | int type; | 978 | int type; |
@@ -979,8 +985,8 @@ typedef struct obj_name_st | |||
979 | 985 | ||
980 | 986 | ||
981 | int OBJ_NAME_init(void); | 987 | int OBJ_NAME_init(void); |
982 | int OBJ_NAME_new_index(unsigned long (*hash_func)(),int (*cmp_func)(), | 988 | int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),int (*cmp_func)(const void *, const void *), |
983 | void (*free_func)()); | 989 | void (*free_func)(const char *, int, const char *)); |
984 | const char *OBJ_NAME_get(const char *name,int type); | 990 | const char *OBJ_NAME_get(const char *name,int type); |
985 | int OBJ_NAME_add(const char *name,int type,const char *data); | 991 | int OBJ_NAME_add(const char *name,int type,const char *data); |
986 | int OBJ_NAME_remove(const char *name,int type); | 992 | int OBJ_NAME_remove(const char *name,int type); |
@@ -997,7 +1003,7 @@ int OBJ_txt2nid(char *s); | |||
997 | int OBJ_ln2nid(const char *s); | 1003 | int OBJ_ln2nid(const char *s); |
998 | int OBJ_sn2nid(const char *s); | 1004 | int OBJ_sn2nid(const char *s); |
999 | int OBJ_cmp(ASN1_OBJECT *a,ASN1_OBJECT *b); | 1005 | int OBJ_cmp(ASN1_OBJECT *a,ASN1_OBJECT *b); |
1000 | char * OBJ_bsearch(char *key,char *base,int num,int size,int (*cmp)()); | 1006 | char * OBJ_bsearch(char *key,char *base,int num,int size,int (*cmp)(const void *, const void *)); |
1001 | 1007 | ||
1002 | void ERR_load_OBJ_strings(void ); | 1008 | void ERR_load_OBJ_strings(void ); |
1003 | 1009 | ||