summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_rtcp.c
diff options
context:
space:
mode:
authorbeck <>2000-12-15 02:58:47 +0000
committerbeck <>2000-12-15 02:58:47 +0000
commit9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch)
tree5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/bio/bss_rtcp.c
parente131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff)
downloadopenbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/bio/bss_rtcp.c')
-rw-r--r--src/lib/libcrypto/bio/bss_rtcp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/bio/bss_rtcp.c b/src/lib/libcrypto/bio/bss_rtcp.c
index 4ad0739464..7dae485564 100644
--- a/src/lib/libcrypto/bio/bss_rtcp.c
+++ b/src/lib/libcrypto/bio/bss_rtcp.c
@@ -88,11 +88,11 @@ struct rpc_ctx {
88 struct rpc_msg msg; 88 struct rpc_msg msg;
89}; 89};
90 90
91static int rtcp_write(BIO *h,char *buf,int num); 91static int rtcp_write(BIO *h,const char *buf,int num);
92static int rtcp_read(BIO *h,char *buf,int size); 92static int rtcp_read(BIO *h,char *buf,int size);
93static int rtcp_puts(BIO *h,char *str); 93static int rtcp_puts(BIO *h,const char *str);
94static int rtcp_gets(BIO *h,char *str,int size); 94static int rtcp_gets(BIO *h,char *str,int size);
95static long rtcp_ctrl(BIO *h,int cmd,long arg1,char *arg2); 95static long rtcp_ctrl(BIO *h,int cmd,long arg1,void *arg2);
96static int rtcp_new(BIO *h); 96static int rtcp_new(BIO *h);
97static int rtcp_free(BIO *data); 97static int rtcp_free(BIO *data);
98 98
@@ -156,7 +156,7 @@ static int rtcp_new(BIO *bi)
156 bi->init=1; 156 bi->init=1;
157 bi->num=0; 157 bi->num=0;
158 bi->flags = 0; 158 bi->flags = 0;
159 bi->ptr=Malloc(sizeof(struct rpc_ctx)); 159 bi->ptr=OPENSSL_malloc(sizeof(struct rpc_ctx));
160 ctx = (struct rpc_ctx *) bi->ptr; 160 ctx = (struct rpc_ctx *) bi->ptr;
161 ctx->filled = 0; 161 ctx->filled = 0;
162 ctx->pos = 0; 162 ctx->pos = 0;
@@ -166,7 +166,7 @@ static int rtcp_new(BIO *bi)
166static int rtcp_free(BIO *a) 166static int rtcp_free(BIO *a)
167{ 167{
168 if (a == NULL) return(0); 168 if (a == NULL) return(0);
169 if ( a->ptr ) Free ( a->ptr ); 169 if ( a->ptr ) OPENSSL_free ( a->ptr );
170 a->ptr = NULL; 170 a->ptr = NULL;
171 return(1); 171 return(1);
172} 172}
@@ -218,7 +218,7 @@ static int rtcp_read(BIO *b, char *out, int outl)
218 return length; 218 return length;
219} 219}
220 220
221static int rtcp_write(BIO *b, char *in, int inl) 221static int rtcp_write(BIO *b, const char *in, int inl)
222{ 222{
223 int status, i, segment, length; 223 int status, i, segment, length;
224 struct rpc_ctx *ctx; 224 struct rpc_ctx *ctx;
@@ -247,7 +247,7 @@ static int rtcp_write(BIO *b, char *in, int inl)
247 return(i); 247 return(i);
248} 248}
249 249
250static long rtcp_ctrl(BIO *b, int cmd, long num, char *ptr) 250static long rtcp_ctrl(BIO *b, int cmd, long num, void *ptr)
251 { 251 {
252 long ret=1; 252 long ret=1;
253 253
@@ -283,7 +283,7 @@ static int rtcp_gets(BIO *bp, char *buf, int size)
283 return(0); 283 return(0);
284 } 284 }
285 285
286static int rtcp_puts(BIO *bp, char *str) 286static int rtcp_puts(BIO *bp, const char *str)
287{ 287{
288 int length; 288 int length;
289 if (str == NULL) return(0); 289 if (str == NULL) return(0);