diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-06-20 17:36:11 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-06-20 17:36:11 +0000 |
commit | 8623f693d9a5c74f76311aebd29767e89467ecea (patch) | |
tree | 03798bbe6a24a55e425f874096d8b6b9486d109a /crypto/conf/conf.h | |
parent | 11af1a2758baefab1157755c508d7b7490155bab (diff) |
New functions CONF_load_bio() and CONF_load_fp() to load a configuration
file from a bio or fp. Added some more constification to the BN library.
Diffstat (limited to 'crypto/conf/conf.h')
-rw-r--r-- | crypto/conf/conf.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/conf/conf.h b/crypto/conf/conf.h index 2401518a12..feb65f2a7d 100644 --- a/crypto/conf/conf.h +++ b/crypto/conf/conf.h @@ -63,8 +63,9 @@ extern "C" { #endif -#include <openssl/stack.h> +#include <openssl/bio.h> #include <openssl/lhash.h> +#include <openssl/stack.h> typedef struct { @@ -74,7 +75,9 @@ typedef struct } CONF_VALUE; -LHASH *CONF_load(LHASH *conf,char *file,long *eline); +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); char *CONF_get_string(LHASH *conf,char *group,char *name); long CONF_get_number(LHASH *conf,char *group,char *name); @@ -90,6 +93,8 @@ void ERR_load_CONF_strings(void ); /* Function codes. */ #define CONF_F_CONF_LOAD 100 +#define CONF_F_CONF_LOAD_BIO 102 +#define CONF_F_CONF_LOAD_FP 103 #define CONF_F_STR_COPY 101 /* Reason codes. */ |