summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/conf/conf.h
diff options
context:
space:
mode:
authorbeck <>1999-09-29 04:37:45 +0000
committerbeck <>1999-09-29 04:37:45 +0000
commitde8f24ea083384bb66b32ec105dc4743c5663cdf (patch)
tree1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/conf/conf.h
parentcb929d29896bcb87c2a97417fbd03e50078fc178 (diff)
downloadopenbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/conf/conf.h')
-rw-r--r--src/lib/libcrypto/conf/conf.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index 1446226a16..e7c5150097 100644
--- a/src/lib/libcrypto/conf/conf.h
+++ b/src/lib/libcrypto/conf/conf.h
@@ -63,8 +63,10 @@
63extern "C" { 63extern "C" {
64#endif 64#endif
65 65
66#include "stack.h" 66#include <openssl/bio.h>
67#include "lhash.h" 67#include <openssl/lhash.h>
68#include <openssl/stack.h>
69#include <openssl/safestack.h>
68 70
69typedef struct 71typedef struct
70 { 72 {
@@ -73,31 +75,29 @@ typedef struct
73 char *value; 75 char *value;
74 } CONF_VALUE; 76 } CONF_VALUE;
75 77
76#ifndef NOPROTO 78DECLARE_STACK_OF(CONF_VALUE)
77 79
78LHASH *CONF_load(LHASH *conf,char *file,long *eline); 80LHASH *CONF_load(LHASH *conf,const char *file,long *eline);
79STACK *CONF_get_section(LHASH *conf,char *section); 81LHASH *CONF_load_fp(LHASH *conf, FILE *fp,long *eline);
82LHASH *CONF_load_bio(LHASH *conf, BIO *bp,long *eline);
83STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf,char *section);
80char *CONF_get_string(LHASH *conf,char *group,char *name); 84char *CONF_get_string(LHASH *conf,char *group,char *name);
81long CONF_get_number(LHASH *conf,char *group,char *name); 85long CONF_get_number(LHASH *conf,char *group,char *name);
82void CONF_free(LHASH *conf); 86void CONF_free(LHASH *conf);
83void ERR_load_CONF_strings(void ); 87void ERR_load_CONF_strings(void );
84 88
85#else
86
87LHASH *CONF_load();
88STACK *CONF_get_section();
89char *CONF_get_string();
90long CONF_get_number();
91void CONF_free();
92void ERR_load_CONF_strings();
93
94#endif
95 89
96/* BEGIN ERROR CODES */ 90/* BEGIN ERROR CODES */
91/* The following lines are auto generated by the script mkerr.pl. Any changes
92 * made after this point may be overwritten when the script is next run.
93 */
94
97/* Error codes for the CONF functions. */ 95/* Error codes for the CONF functions. */
98 96
99/* Function codes. */ 97/* Function codes. */
100#define CONF_F_CONF_LOAD 100 98#define CONF_F_CONF_LOAD 100
99#define CONF_F_CONF_LOAD_BIO 102
100#define CONF_F_CONF_LOAD_FP 103
101#define CONF_F_STR_COPY 101 101#define CONF_F_STR_COPY 101
102 102
103/* Reason codes. */ 103/* Reason codes. */
@@ -106,7 +106,7 @@ void ERR_load_CONF_strings();
106#define CONF_R_NO_CLOSE_BRACE 102 106#define CONF_R_NO_CLOSE_BRACE 102
107#define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 107#define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103
108#define CONF_R_VARIABLE_HAS_NO_VALUE 104 108#define CONF_R_VARIABLE_HAS_NO_VALUE 104
109 109
110#ifdef __cplusplus 110#ifdef __cplusplus
111} 111}
112#endif 112#endif