diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-06-20 22:18:16 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-06-20 22:18:16 +0000 |
commit | ba404b5e86a707afe7faca8e22d53eea5e64c8b6 (patch) | |
tree | e1ae9500f211bc5cb067ec366b0e3f8caf1e03e6 /crypto/conf/conf.h | |
parent | 8623f693d9a5c74f76311aebd29767e89467ecea (diff) | |
download | openssl-ba404b5e86a707afe7faca8e22d53eea5e64c8b6.tar.gz |
Convert the CONF library to use a typesafe stack: a STACK_OF(CONF_VALUE). It
seemed like a good idea at the time... several hours later it was rather
obvious that these are used all over the place making the changes rather
extensive.
Diffstat (limited to 'crypto/conf/conf.h')
-rw-r--r-- | crypto/conf/conf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/conf/conf.h b/crypto/conf/conf.h index feb65f2a7d..e7c5150097 100644 --- a/crypto/conf/conf.h +++ b/crypto/conf/conf.h @@ -66,6 +66,7 @@ extern "C" { #include <openssl/bio.h> #include <openssl/lhash.h> #include <openssl/stack.h> +#include <openssl/safestack.h> typedef struct { @@ -74,16 +75,18 @@ typedef struct char *value; } CONF_VALUE; +DECLARE_STACK_OF(CONF_VALUE) LHASH *CONF_load(LHASH *conf,const char *file,long *eline); LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline); LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline); -STACK *CONF_get_section(LHASH *conf,char *section); +STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,char *section); char *CONF_get_string(LHASH *conf,char *group,char *name); long CONF_get_number(LHASH *conf,char *group,char *name); void CONF_free(LHASH *conf); void ERR_load_CONF_strings(void ); + /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. |