diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_err.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_err.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/lib/libcrypto/dh/dh_err.c b/src/lib/libcrypto/dh/dh_err.c index 914b8a9c53..9336bfce6b 100644 --- a/src/lib/libcrypto/dh/dh_err.c +++ b/src/lib/libcrypto/dh/dh_err.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* crypto/dh/dh_err.c */ | 1 | /* crypto/dh/dh_err.c */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2003 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions |
@@ -64,22 +64,26 @@ | |||
64 | 64 | ||
65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
67 | |||
68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_DH,func,0) | ||
69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_DH,0,reason) | ||
70 | |||
67 | static ERR_STRING_DATA DH_str_functs[]= | 71 | static ERR_STRING_DATA DH_str_functs[]= |
68 | { | 72 | { |
69 | {ERR_PACK(0,DH_F_DHPARAMS_PRINT,0), "DHparams_print"}, | 73 | {ERR_FUNC(DH_F_DHPARAMS_PRINT), "DHparams_print"}, |
70 | {ERR_PACK(0,DH_F_DHPARAMS_PRINT_FP,0), "DHparams_print_fp"}, | 74 | {ERR_FUNC(DH_F_DHPARAMS_PRINT_FP), "DHparams_print_fp"}, |
71 | {ERR_PACK(0,DH_F_DH_COMPUTE_KEY,0), "DH_compute_key"}, | 75 | {ERR_FUNC(DH_F_DH_COMPUTE_KEY), "DH_compute_key"}, |
72 | {ERR_PACK(0,DH_F_DH_GENERATE_KEY,0), "DH_generate_key"}, | 76 | {ERR_FUNC(DH_F_DH_GENERATE_KEY), "DH_generate_key"}, |
73 | {ERR_PACK(0,DH_F_DH_GENERATE_PARAMETERS,0), "DH_generate_parameters"}, | 77 | {ERR_FUNC(DH_F_DH_GENERATE_PARAMETERS), "DH_generate_parameters"}, |
74 | {ERR_PACK(0,DH_F_DH_NEW_METHOD,0), "DH_new_method"}, | 78 | {ERR_FUNC(DH_F_DH_NEW_METHOD), "DH_new_method"}, |
75 | {0,NULL} | 79 | {0,NULL} |
76 | }; | 80 | }; |
77 | 81 | ||
78 | static ERR_STRING_DATA DH_str_reasons[]= | 82 | static ERR_STRING_DATA DH_str_reasons[]= |
79 | { | 83 | { |
80 | {DH_R_BAD_GENERATOR ,"bad generator"}, | 84 | {ERR_REASON(DH_R_BAD_GENERATOR) ,"bad generator"}, |
81 | {DH_R_NO_PRIVATE_VALUE ,"no private value"}, | 85 | {ERR_REASON(DH_R_NO_PRIVATE_VALUE) ,"no private value"}, |
82 | {DH_R_INVALID_PUBKEY ,"invalid public key"}, | 86 | {ERR_REASON(DH_R_INVALID_PUBKEY) ,"invalid public key"}, |
83 | {0,NULL} | 87 | {0,NULL} |
84 | }; | 88 | }; |
85 | 89 | ||
@@ -93,8 +97,8 @@ void ERR_load_DH_strings(void) | |||
93 | { | 97 | { |
94 | init=0; | 98 | init=0; |
95 | #ifndef OPENSSL_NO_ERR | 99 | #ifndef OPENSSL_NO_ERR |
96 | ERR_load_strings(ERR_LIB_DH,DH_str_functs); | 100 | ERR_load_strings(0,DH_str_functs); |
97 | ERR_load_strings(ERR_LIB_DH,DH_str_reasons); | 101 | ERR_load_strings(0,DH_str_reasons); |
98 | #endif | 102 | #endif |
99 | 103 | ||
100 | } | 104 | } |