summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_log.c')
-rw-r--r--src/lib/libcrypto/bio/bss_log.c20
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
125static int MS_CALLBACK slg_write(BIO *h, const char *buf, int num); 125static int slg_write(BIO *h, const char *buf, int num);
126static int MS_CALLBACK slg_puts(BIO *h, const char *str); 126static int slg_puts(BIO *h, const char *str);
127static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); 127static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
128static int MS_CALLBACK slg_new(BIO *h); 128static int slg_new(BIO *h);
129static int MS_CALLBACK slg_free(BIO *data); 129static int slg_free(BIO *data);
130static void xopenlog(BIO* bp, char* name, int level); 130static void xopenlog(BIO* bp, char* name, int level);
131static void xsyslog(BIO* bp, int priority, const char* string); 131static void xsyslog(BIO* bp, int priority, const char* string);
132static void xcloselog(BIO* bp); 132static 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
152static int MS_CALLBACK slg_new(BIO *bi) 152static 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
161static int MS_CALLBACK slg_free(BIO *a) 161static 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
168static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl) 168static 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
221static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, void *ptr) 221static 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
235static int MS_CALLBACK slg_puts(BIO *bp, const char *str) 235static int slg_puts(BIO *bp, const char *str)
236 { 236 {
237 int n,ret; 237 int n,ret;
238 238