diff options
Diffstat (limited to 'src/lib/libcrypto/conf/conf_api.c')
| -rw-r--r-- | src/lib/libcrypto/conf/conf_api.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/lib/libcrypto/conf/conf_api.c b/src/lib/libcrypto/conf/conf_api.c index 7480dda3d5..56a4f249ad 100644 --- a/src/lib/libcrypto/conf/conf_api.c +++ b/src/lib/libcrypto/conf/conf_api.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: conf_api.c,v 1.11 2014/06/23 22:19:02 deraadt Exp $ */ | 1 | /* $OpenBSD: conf_api.c,v 1.12 2015/02/07 13:19:15 doug Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -165,28 +165,6 @@ _CONF_get_string(const CONF *conf, const char *section, const char *name) | |||
| 165 | } | 165 | } |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | #if 0 /* There's no way to provide error checking with this function, so | ||
| 169 | force implementors of the higher levels to get a string and read | ||
| 170 | the number themselves. */ | ||
| 171 | long | ||
| 172 | _CONF_get_number(CONF *conf, char *section, char *name) | ||
| 173 | { | ||
| 174 | char *str; | ||
| 175 | long ret = 0; | ||
| 176 | |||
| 177 | str = _CONF_get_string(conf, section, name); | ||
| 178 | if (str == NULL) | ||
| 179 | return (0); | ||
| 180 | for (;;) { | ||
| 181 | if (conf->meth->is_number(conf, *str)) | ||
| 182 | ret = ret * 10 + conf->meth->to_int(conf, *str); | ||
| 183 | else | ||
| 184 | return (ret); | ||
| 185 | str++; | ||
| 186 | } | ||
| 187 | } | ||
| 188 | #endif | ||
| 189 | |||
| 190 | static unsigned long | 168 | static unsigned long |
| 191 | conf_value_hash(const CONF_VALUE *v) | 169 | conf_value_hash(const CONF_VALUE *v) |
| 192 | { | 170 | { |
