conf_err.c (160814) | conf_err.c (167612) |
---|---|
1/* crypto/conf/conf_err.c */ 2/* ==================================================================== 3 * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 104 unchanged lines hidden (view full) --- 113{ERR_REASON(CONF_R_VARIABLE_HAS_NO_VALUE),"variable has no value"}, 114{0,NULL} 115 }; 116 117#endif 118 119void ERR_load_CONF_strings(void) 120 { | 1/* crypto/conf/conf_err.c */ 2/* ==================================================================== 3 * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 104 unchanged lines hidden (view full) --- 113{ERR_REASON(CONF_R_VARIABLE_HAS_NO_VALUE),"variable has no value"}, 114{0,NULL} 115 }; 116 117#endif 118 119void ERR_load_CONF_strings(void) 120 { |
121 static int init=1; | 121#ifndef OPENSSL_NO_ERR |
122 | 122 |
123 if (init) | 123 if (ERR_func_error_string(CONF_str_functs[0].error) == NULL) |
124 { | 124 { |
125 init=0; 126#ifndef OPENSSL_NO_ERR | |
127 ERR_load_strings(0,CONF_str_functs); 128 ERR_load_strings(0,CONF_str_reasons); | 125 ERR_load_strings(0,CONF_str_functs); 126 ERR_load_strings(0,CONF_str_reasons); |
129#endif 130 | |
131 } | 127 } |
128#endif |
|
132 } | 129 } |