summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_null.c')
-rw-r--r--src/lib/libcrypto/bio/bss_null.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/bio/bss_null.c b/src/lib/libcrypto/bio/bss_null.c
index aee18e3ada..46b73339df 100644
--- a/src/lib/libcrypto/bio/bss_null.c
+++ b/src/lib/libcrypto/bio/bss_null.c
@@ -61,11 +61,11 @@
61#include "cryptlib.h" 61#include "cryptlib.h"
62#include <openssl/bio.h> 62#include <openssl/bio.h>
63 63
64static int null_write(BIO *h,char *buf,int num); 64static int null_write(BIO *h, const char *buf, int num);
65static int null_read(BIO *h,char *buf,int size); 65static int null_read(BIO *h, char *buf, int size);
66static int null_puts(BIO *h,char *str); 66static int null_puts(BIO *h, const char *str);
67static int null_gets(BIO *h,char *str,int size); 67static int null_gets(BIO *h, char *str, int size);
68static long null_ctrl(BIO *h,int cmd,long arg1,char *arg2); 68static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2);
69static int null_new(BIO *h); 69static int null_new(BIO *h);
70static int null_free(BIO *data); 70static int null_free(BIO *data);
71static BIO_METHOD null_method= 71static BIO_METHOD null_method=
@@ -106,12 +106,12 @@ static int null_read(BIO *b, char *out, int outl)
106 return(0); 106 return(0);
107 } 107 }
108 108
109static int null_write(BIO *b, char *in, int inl) 109static int null_write(BIO *b, const char *in, int inl)
110 { 110 {
111 return(inl); 111 return(inl);
112 } 112 }
113 113
114static long null_ctrl(BIO *b, int cmd, long num, char *ptr) 114static long null_ctrl(BIO *b, int cmd, long num, void *ptr)
115 { 115 {
116 long ret=1; 116 long ret=1;
117 117
@@ -142,7 +142,7 @@ static int null_gets(BIO *bp, char *buf, int size)
142 return(0); 142 return(0);
143 } 143 }
144 144
145static int null_puts(BIO *bp, char *str) 145static int null_puts(BIO *bp, const char *str)
146 { 146 {
147 if (str == NULL) return(0); 147 if (str == NULL) return(0);
148 return(strlen(str)); 148 return(strlen(str));