diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_log.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 2227b2b52d..1cc413a916 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
| @@ -122,11 +122,11 @@ | |||
| 122 | #define LOG_DAEMON OPC$M_NM_NTWORK | 122 | #define LOG_DAEMON OPC$M_NM_NTWORK |
| 123 | #endif | 123 | #endif |
| 124 | 124 | ||
| 125 | static int MS_CALLBACK slg_write(BIO *h, const char *buf, int num); | 125 | static int slg_write(BIO *h, const char *buf, int num); |
| 126 | static int MS_CALLBACK slg_puts(BIO *h, const char *str); | 126 | static int slg_puts(BIO *h, const char *str); |
| 127 | static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); | 127 | static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
| 128 | static int MS_CALLBACK slg_new(BIO *h); | 128 | static int slg_new(BIO *h); |
| 129 | static int MS_CALLBACK slg_free(BIO *data); | 129 | static int slg_free(BIO *data); |
| 130 | static void xopenlog(BIO* bp, char* name, int level); | 130 | static void xopenlog(BIO* bp, char* name, int level); |
| 131 | static void xsyslog(BIO* bp, int priority, const char* string); | 131 | static void xsyslog(BIO* bp, int priority, const char* string); |
| 132 | static void xcloselog(BIO* bp); | 132 | static void xcloselog(BIO* bp); |
| @@ -149,7 +149,7 @@ BIO_METHOD *BIO_s_log(void) | |||
| 149 | return(&methods_slg); | 149 | return(&methods_slg); |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | static int MS_CALLBACK slg_new(BIO *bi) | 152 | static int slg_new(BIO *bi) |
| 153 | { | 153 | { |
| 154 | bi->init=1; | 154 | bi->init=1; |
| 155 | bi->num=0; | 155 | bi->num=0; |
| @@ -158,14 +158,14 @@ static int MS_CALLBACK slg_new(BIO *bi) | |||
| 158 | return(1); | 158 | return(1); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | static int MS_CALLBACK slg_free(BIO *a) | 161 | static int slg_free(BIO *a) |
| 162 | { | 162 | { |
| 163 | if (a == NULL) return(0); | 163 | if (a == NULL) return(0); |
| 164 | xcloselog(a); | 164 | xcloselog(a); |
| 165 | return(1); | 165 | return(1); |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) | 168 | static int slg_write(BIO *b, const char *in, int inl) |
| 169 | { | 169 | { |
| 170 | int ret= inl; | 170 | int ret= inl; |
| 171 | char* buf; | 171 | char* buf; |
| @@ -218,7 +218,7 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) | |||
| 218 | return(ret); | 218 | return(ret); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) | 221 | static long slg_ctrl(BIO *b, int cmd, long num, void *ptr) |
| 222 | { | 222 | { |
| 223 | switch (cmd) | 223 | switch (cmd) |
| 224 | { | 224 | { |
| @@ -232,7 +232,7 @@ static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 232 | return(0); | 232 | return(0); |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | static int MS_CALLBACK slg_puts(BIO *bp, const char *str) | 235 | static int slg_puts(BIO *bp, const char *str) |
| 236 | { | 236 | { |
| 237 | int n,ret; | 237 | int n,ret; |
| 238 | 238 | ||
