diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_err.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_err.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/lib/libcrypto/dh/dh_err.c b/src/lib/libcrypto/dh/dh_err.c index 83ccb41221..914b8a9c53 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-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2003 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,25 +64,22 @@ | |||
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 | |||
71 | static ERR_STRING_DATA DH_str_functs[]= | 67 | static ERR_STRING_DATA DH_str_functs[]= |
72 | { | 68 | { |
73 | {ERR_FUNC(DH_F_DHPARAMS_PRINT), "DHparams_print"}, | 69 | {ERR_PACK(0,DH_F_DHPARAMS_PRINT,0), "DHparams_print"}, |
74 | {ERR_FUNC(DH_F_DHPARAMS_PRINT_FP), "DHparams_print_fp"}, | 70 | {ERR_PACK(0,DH_F_DHPARAMS_PRINT_FP,0), "DHparams_print_fp"}, |
75 | {ERR_FUNC(DH_F_DH_COMPUTE_KEY), "DH_compute_key"}, | 71 | {ERR_PACK(0,DH_F_DH_COMPUTE_KEY,0), "DH_compute_key"}, |
76 | {ERR_FUNC(DH_F_DH_GENERATE_KEY), "DH_generate_key"}, | 72 | {ERR_PACK(0,DH_F_DH_GENERATE_KEY,0), "DH_generate_key"}, |
77 | {ERR_FUNC(DH_F_DH_GENERATE_PARAMETERS), "DH_generate_parameters"}, | 73 | {ERR_PACK(0,DH_F_DH_GENERATE_PARAMETERS,0), "DH_generate_parameters"}, |
78 | {ERR_FUNC(DH_F_DH_NEW_METHOD), "DH_new_method"}, | 74 | {ERR_PACK(0,DH_F_DH_NEW_METHOD,0), "DH_new_method"}, |
79 | {0,NULL} | 75 | {0,NULL} |
80 | }; | 76 | }; |
81 | 77 | ||
82 | static ERR_STRING_DATA DH_str_reasons[]= | 78 | static ERR_STRING_DATA DH_str_reasons[]= |
83 | { | 79 | { |
84 | {ERR_REASON(DH_R_BAD_GENERATOR) ,"bad generator"}, | 80 | {DH_R_BAD_GENERATOR ,"bad generator"}, |
85 | {ERR_REASON(DH_R_NO_PRIVATE_VALUE) ,"no private value"}, | 81 | {DH_R_NO_PRIVATE_VALUE ,"no private value"}, |
82 | {DH_R_INVALID_PUBKEY ,"invalid public key"}, | ||
86 | {0,NULL} | 83 | {0,NULL} |
87 | }; | 84 | }; |
88 | 85 | ||
@@ -96,8 +93,8 @@ void ERR_load_DH_strings(void) | |||
96 | { | 93 | { |
97 | init=0; | 94 | init=0; |
98 | #ifndef OPENSSL_NO_ERR | 95 | #ifndef OPENSSL_NO_ERR |
99 | ERR_load_strings(0,DH_str_functs); | 96 | ERR_load_strings(ERR_LIB_DH,DH_str_functs); |
100 | ERR_load_strings(0,DH_str_reasons); | 97 | ERR_load_strings(ERR_LIB_DH,DH_str_reasons); |
101 | #endif | 98 | #endif |
102 | 99 | ||
103 | } | 100 | } |