diff options
author | Richard Levitte <levitte@openssl.org> | 2000-10-19 08:03:14 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-10-19 08:03:14 +0000 |
commit | c6f1787bbd8012b372158c15ac84abf75261be3e (patch) | |
tree | db303d8b4c5c773087788ffcffddd6e29099e08c /crypto/conf/conf_api.c | |
parent | 9bd3bd227fb9ad36f939dfde81dd843be604c452 (diff) |
NCONF_get_number() has no error checking at all. As a replacement,
NCONF_get_number_e() is defined (_e for "error checking") and is
promoted strongly. The old NCONF_get_number is kept around for
binary backward compatibility.
Diffstat (limited to 'crypto/conf/conf_api.c')
-rw-r--r-- | crypto/conf/conf_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c index d05a778ff6..7abeeced07 100644 --- a/crypto/conf/conf_api.c +++ b/crypto/conf/conf_api.c @@ -153,6 +153,9 @@ char *_CONF_get_string(CONF *conf, char *section, char *name) return(Getenv(name)); } +#if 0 /* There's no way to provide error checking with this function, so + force implementors of the higher levels to get a string and read + the number themselves. */ long _CONF_get_number(CONF *conf, char *section, char *name) { char *str; @@ -169,6 +172,7 @@ long _CONF_get_number(CONF *conf, char *section, char *name) str++; } } +#endif int _CONF_new_data(CONF *conf) { |