diff options
author | beck <> | 2014-04-13 19:50:56 +0000 |
---|---|---|
committer | beck <> | 2014-04-13 19:50:56 +0000 |
commit | b8d0226baeb7d192c015a0db36bb7d77f17b744c (patch) | |
tree | 408fd582bdaae20967d5a427b44a92580d19a1e2 /src/lib/libcrypto | |
parent | da46bab8c0298f3edf0a0d6efc66fc7838b161e5 (diff) | |
download | openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.tar.gz openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.tar.bz2 openbsd-b8d0226baeb7d192c015a0db36bb7d77f17b744c.zip |
Remove some stuff that isn't needed.
ok miod@ deraadt@
Diffstat (limited to 'src/lib/libcrypto')
-rw-r--r-- | src/lib/libcrypto/bio/bio_cb.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_file.c | 28 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 20 | ||||
-rw-r--r-- | src/lib/libcrypto/cryptlib.c | 14 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/rand/randfile.c | 2 |
6 files changed, 35 insertions, 35 deletions
diff --git a/src/lib/libcrypto/bio/bio_cb.c b/src/lib/libcrypto/bio/bio_cb.c index 9bcbc321d9..7334a254bf 100644 --- a/src/lib/libcrypto/bio/bio_cb.c +++ b/src/lib/libcrypto/bio/bio_cb.c | |||
@@ -63,11 +63,11 @@ | |||
63 | #include <openssl/bio.h> | 63 | #include <openssl/bio.h> |
64 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
65 | 65 | ||
66 | long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, | 66 | long BIO_debug_callback(BIO *bio, int cmd, const char *argp, |
67 | int argi, long argl, long ret) | 67 | int argi, long argl, long ret) |
68 | { | 68 | { |
69 | BIO *b; | 69 | BIO *b; |
70 | MS_STATIC char buf[256]; | 70 | char buf[256]; |
71 | char *p; | 71 | char *p; |
72 | long r=1; | 72 | long r=1; |
73 | size_t p_maxlen; | 73 | size_t p_maxlen; |
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c index b954fe7ebc..4a4e747bc7 100644 --- a/src/lib/libcrypto/bio/bss_file.c +++ b/src/lib/libcrypto/bio/bss_file.c | |||
@@ -95,13 +95,13 @@ | |||
95 | 95 | ||
96 | #if !defined(OPENSSL_NO_STDIO) | 96 | #if !defined(OPENSSL_NO_STDIO) |
97 | 97 | ||
98 | static int MS_CALLBACK file_write(BIO *h, const char *buf, int num); | 98 | static int file_write(BIO *h, const char *buf, int num); |
99 | static int MS_CALLBACK file_read(BIO *h, char *buf, int size); | 99 | static int file_read(BIO *h, char *buf, int size); |
100 | static int MS_CALLBACK file_puts(BIO *h, const char *str); | 100 | static int file_puts(BIO *h, const char *str); |
101 | static int MS_CALLBACK file_gets(BIO *h, char *str, int size); | 101 | static int file_gets(BIO *h, char *str, int size); |
102 | static long MS_CALLBACK file_ctrl(BIO *h, int cmd, long arg1, void *arg2); | 102 | static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
103 | static int MS_CALLBACK file_new(BIO *h); | 103 | static int file_new(BIO *h); |
104 | static int MS_CALLBACK file_free(BIO *data); | 104 | static int file_free(BIO *data); |
105 | static BIO_METHOD methods_filep= | 105 | static BIO_METHOD methods_filep= |
106 | { | 106 | { |
107 | BIO_TYPE_FILE, | 107 | BIO_TYPE_FILE, |
@@ -202,7 +202,7 @@ BIO_METHOD *BIO_s_file(void) | |||
202 | return(&methods_filep); | 202 | return(&methods_filep); |
203 | } | 203 | } |
204 | 204 | ||
205 | static int MS_CALLBACK file_new(BIO *bi) | 205 | static int file_new(BIO *bi) |
206 | { | 206 | { |
207 | bi->init=0; | 207 | bi->init=0; |
208 | bi->num=0; | 208 | bi->num=0; |
@@ -211,7 +211,7 @@ static int MS_CALLBACK file_new(BIO *bi) | |||
211 | return(1); | 211 | return(1); |
212 | } | 212 | } |
213 | 213 | ||
214 | static int MS_CALLBACK file_free(BIO *a) | 214 | static int file_free(BIO *a) |
215 | { | 215 | { |
216 | if (a == NULL) return(0); | 216 | if (a == NULL) return(0); |
217 | if (a->shutdown) | 217 | if (a->shutdown) |
@@ -230,7 +230,7 @@ static int MS_CALLBACK file_free(BIO *a) | |||
230 | return(1); | 230 | return(1); |
231 | } | 231 | } |
232 | 232 | ||
233 | static int MS_CALLBACK file_read(BIO *b, char *out, int outl) | 233 | static int file_read(BIO *b, char *out, int outl) |
234 | { | 234 | { |
235 | int ret=0; | 235 | int ret=0; |
236 | 236 | ||
@@ -250,7 +250,7 @@ static int MS_CALLBACK file_read(BIO *b, char *out, int outl) | |||
250 | return(ret); | 250 | return(ret); |
251 | } | 251 | } |
252 | 252 | ||
253 | static int MS_CALLBACK file_write(BIO *b, const char *in, int inl) | 253 | static int file_write(BIO *b, const char *in, int inl) |
254 | { | 254 | { |
255 | int ret=0; | 255 | int ret=0; |
256 | 256 | ||
@@ -270,7 +270,7 @@ static int MS_CALLBACK file_write(BIO *b, const char *in, int inl) | |||
270 | return(ret); | 270 | return(ret); |
271 | } | 271 | } |
272 | 272 | ||
273 | static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | 273 | static long file_ctrl(BIO *b, int cmd, long num, void *ptr) |
274 | { | 274 | { |
275 | long ret=1; | 275 | long ret=1; |
276 | FILE *fp=(FILE *)b->ptr; | 276 | FILE *fp=(FILE *)b->ptr; |
@@ -440,7 +440,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
440 | return(ret); | 440 | return(ret); |
441 | } | 441 | } |
442 | 442 | ||
443 | static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) | 443 | static int file_gets(BIO *bp, char *buf, int size) |
444 | { | 444 | { |
445 | int ret=0; | 445 | int ret=0; |
446 | 446 | ||
@@ -461,7 +461,7 @@ static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) | |||
461 | return(ret); | 461 | return(ret); |
462 | } | 462 | } |
463 | 463 | ||
464 | static int MS_CALLBACK file_puts(BIO *bp, const char *str) | 464 | static int file_puts(BIO *bp, const char *str) |
465 | { | 465 | { |
466 | int n,ret; | 466 | int n,ret; |
467 | 467 | ||
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 | ||
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c index 0b77d8b7d0..082b2e88ee 100644 --- a/src/lib/libcrypto/cryptlib.c +++ b/src/lib/libcrypto/cryptlib.c | |||
@@ -182,19 +182,19 @@ static STACK_OF(OPENSSL_STRING) *app_locks=NULL; | |||
182 | static STACK_OF(CRYPTO_dynlock) *dyn_locks=NULL; | 182 | static STACK_OF(CRYPTO_dynlock) *dyn_locks=NULL; |
183 | 183 | ||
184 | 184 | ||
185 | static void (MS_FAR *locking_callback)(int mode,int type, | 185 | static void (*locking_callback)(int mode,int type, |
186 | const char *file,int line)=0; | 186 | const char *file,int line)=0; |
187 | static int (MS_FAR *add_lock_callback)(int *pointer,int amount, | 187 | static int (*add_lock_callback)(int *pointer,int amount, |
188 | int type,const char *file,int line)=0; | 188 | int type,const char *file,int line)=0; |
189 | #ifndef OPENSSL_NO_DEPRECATED | 189 | #ifndef OPENSSL_NO_DEPRECATED |
190 | static unsigned long (MS_FAR *id_callback)(void)=0; | 190 | static unsigned long (*id_callback)(void)=0; |
191 | #endif | 191 | #endif |
192 | static void (MS_FAR *threadid_callback)(CRYPTO_THREADID *)=0; | 192 | static void (*threadid_callback)(CRYPTO_THREADID *)=0; |
193 | static struct CRYPTO_dynlock_value *(MS_FAR *dynlock_create_callback) | 193 | static struct CRYPTO_dynlock_value *(*dynlock_create_callback) |
194 | (const char *file,int line)=0; | 194 | (const char *file,int line)=0; |
195 | static void (MS_FAR *dynlock_lock_callback)(int mode, | 195 | static void (*dynlock_lock_callback)(int mode, |
196 | struct CRYPTO_dynlock_value *l, const char *file,int line)=0; | 196 | struct CRYPTO_dynlock_value *l, const char *file,int line)=0; |
197 | static void (MS_FAR *dynlock_destroy_callback)(struct CRYPTO_dynlock_value *l, | 197 | static void (*dynlock_destroy_callback)(struct CRYPTO_dynlock_value *l, |
198 | const char *file,int line)=0; | 198 | const char *file,int line)=0; |
199 | 199 | ||
200 | int CRYPTO_get_new_lockid(char *name) | 200 | int CRYPTO_get_new_lockid(char *name) |
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index 8a342ba3eb..99646c300c 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c | |||
@@ -734,7 +734,7 @@ const void *OBJ_bsearch_ex_(const void *key, const void *base_, int num, | |||
734 | 734 | ||
735 | int OBJ_create_objects(BIO *in) | 735 | int OBJ_create_objects(BIO *in) |
736 | { | 736 | { |
737 | MS_STATIC char buf[512]; | 737 | char buf[512]; |
738 | int i,num=0; | 738 | int i,num=0; |
739 | char *o,*s,*l=NULL; | 739 | char *o,*s,*l=NULL; |
740 | 740 | ||
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 7f1428072d..10d511b8e8 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c | |||
@@ -110,7 +110,7 @@ int RAND_load_file(const char *file, long bytes) | |||
110 | /* If bytes >= 0, read up to 'bytes' bytes. | 110 | /* If bytes >= 0, read up to 'bytes' bytes. |
111 | * if bytes == -1, read complete file. */ | 111 | * if bytes == -1, read complete file. */ |
112 | 112 | ||
113 | MS_STATIC unsigned char buf[BUFSIZE]; | 113 | unsigned char buf[BUFSIZE]; |
114 | #ifndef OPENSSL_NO_POSIX_IO | 114 | #ifndef OPENSSL_NO_POSIX_IO |
115 | struct stat sb; | 115 | struct stat sb; |
116 | #endif | 116 | #endif |