diff options
author | beck <> | 2000-12-15 02:58:47 +0000 |
---|---|---|
committer | beck <> | 2000-12-15 02:58:47 +0000 |
commit | 9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch) | |
tree | 5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/bio/bf_null.c | |
parent | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff) | |
download | openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2 openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/bio/bf_null.c')
-rw-r--r-- | src/lib/libcrypto/bio/bf_null.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c index 0d183a6d9a..2678a1a85d 100644 --- a/src/lib/libcrypto/bio/bf_null.c +++ b/src/lib/libcrypto/bio/bf_null.c | |||
@@ -65,14 +65,14 @@ | |||
65 | /* BIO_put and BIO_get both add to the digest, | 65 | /* BIO_put and BIO_get both add to the digest, |
66 | * BIO_gets returns the digest */ | 66 | * BIO_gets returns the digest */ |
67 | 67 | ||
68 | static int nullf_write(BIO *h,char *buf,int num); | 68 | static int nullf_write(BIO *h, const char *buf, int num); |
69 | static int nullf_read(BIO *h,char *buf,int size); | 69 | static int nullf_read(BIO *h, char *buf, int size); |
70 | static int nullf_puts(BIO *h,char *str); | 70 | static int nullf_puts(BIO *h, const char *str); |
71 | static int nullf_gets(BIO *h,char *str,int size); | 71 | static int nullf_gets(BIO *h, char *str, int size); |
72 | static long nullf_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 72 | static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
73 | static int nullf_new(BIO *h); | 73 | static int nullf_new(BIO *h); |
74 | static int nullf_free(BIO *data); | 74 | static int nullf_free(BIO *data); |
75 | static long nullf_callback_ctrl(BIO *h,int cmd,void (*fp)()); | 75 | static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); |
76 | static BIO_METHOD methods_nullf= | 76 | static BIO_METHOD methods_nullf= |
77 | { | 77 | { |
78 | BIO_TYPE_NULL_FILTER, | 78 | BIO_TYPE_NULL_FILTER, |
@@ -121,7 +121,7 @@ static int nullf_read(BIO *b, char *out, int outl) | |||
121 | return(ret); | 121 | return(ret); |
122 | } | 122 | } |
123 | 123 | ||
124 | static int nullf_write(BIO *b, char *in, int inl) | 124 | static int nullf_write(BIO *b, const char *in, int inl) |
125 | { | 125 | { |
126 | int ret=0; | 126 | int ret=0; |
127 | 127 | ||
@@ -133,7 +133,7 @@ static int nullf_write(BIO *b, char *in, int inl) | |||
133 | return(ret); | 133 | return(ret); |
134 | } | 134 | } |
135 | 135 | ||
136 | static long nullf_ctrl(BIO *b, int cmd, long num, char *ptr) | 136 | static long nullf_ctrl(BIO *b, int cmd, long num, void *ptr) |
137 | { | 137 | { |
138 | long ret; | 138 | long ret; |
139 | 139 | ||
@@ -154,7 +154,7 @@ static long nullf_ctrl(BIO *b, int cmd, long num, char *ptr) | |||
154 | return(ret); | 154 | return(ret); |
155 | } | 155 | } |
156 | 156 | ||
157 | static long nullf_callback_ctrl(BIO *b, int cmd, void (*fp)()) | 157 | static long nullf_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) |
158 | { | 158 | { |
159 | long ret=1; | 159 | long ret=1; |
160 | 160 | ||
@@ -175,7 +175,7 @@ static int nullf_gets(BIO *bp, char *buf, int size) | |||
175 | } | 175 | } |
176 | 176 | ||
177 | 177 | ||
178 | static int nullf_puts(BIO *bp, char *str) | 178 | static int nullf_puts(BIO *bp, const char *str) |
179 | { | 179 | { |
180 | if (bp->next_bio == NULL) return(0); | 180 | if (bp->next_bio == NULL) return(0); |
181 | return(BIO_puts(bp->next_bio,str)); | 181 | return(BIO_puts(bp->next_bio,str)); |