projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complete rewrite of the error code generation script. It now runs as a single
[openssl.git]
/
crypto
/
bio
/
bss_rtcp.c
diff --git
a/crypto/bio/bss_rtcp.c
b/crypto/bio/bss_rtcp.c
index cd48f7ce95d4b6c844fdf1f3af467b89f3b5de9e..925e9c811a35a265c8435097c1efd30a6d0ef7a2 100644
(file)
--- a/
crypto/bio/bss_rtcp.c
+++ b/
crypto/bio/bss_rtcp.c
@@
-1,5
+1,5
@@
/* crypto/bio/bss_rtcp.c */
/* crypto/bio/bss_rtcp.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-65,7
+65,7
@@
#include <string.h>
#include <errno.h>
#include "cryptlib.h"
#include <string.h>
#include <errno.h>
#include "cryptlib.h"
-#include
"bio.h"
+#include
<openssl/bio.h>
#include <iodef.h> /* VMS IO$_ definitions */
extern int SYS$QIOW();
#include <iodef.h> /* VMS IO$_ definitions */
extern int SYS$QIOW();
@@
-96,7
+96,8
@@
static int rtcp_free(BIO *data);
static BIO_METHOD rtcp_method=
{
static BIO_METHOD rtcp_method=
{
- BIO_TYPE_FD,"RTCP",
+ BIO_TYPE_FD,
+ "RTCP",
rtcp_write,
rtcp_read,
rtcp_puts,
rtcp_write,
rtcp_read,
rtcp_puts,
@@
-106,7
+107,7
@@
static BIO_METHOD rtcp_method=
rtcp_free,
};
rtcp_free,
};
-BIO_METHOD *BIO_s_rtcp()
+BIO_METHOD *BIO_s_rtcp(
void
)
{
return(&rtcp_method);
}
{
return(&rtcp_method);
}
@@
-135,8
+136,7
@@
static int put ( io_channel chan, char *buffer, int length )
}
/***************************************************************************/
}
/***************************************************************************/
-static int rtcp_new(bi)
-BIO *bi;
+static int rtcp_new(BIO *bi)
{
struct rpc_ctx *ctx;
bi->init=1;
{
struct rpc_ctx *ctx;
bi->init=1;
@@
-149,8
+149,7
@@
BIO *bi;
return(1);
}
return(1);
}
-static int rtcp_free(a)
-BIO *a;
+static int rtcp_free(BIO *a)
{
if (a == NULL) return(0);
if ( a->ptr ) Free ( a->ptr );
{
if (a == NULL) return(0);
if ( a->ptr ) Free ( a->ptr );
@@
-158,10
+157,7
@@
BIO *a;
return(1);
}
return(1);
}
-static int rtcp_read(b,out,outl)
-BIO *b;
-char *out;
-int outl;
+static int rtcp_read(BIO *b, char *out, int outl)
{
int status, length;
struct rpc_ctx *ctx;
{
int status, length;
struct rpc_ctx *ctx;
@@
-208,10
+204,7
@@
int outl;
return length;
}
return length;
}
-static int rtcp_write(b,in,inl)
-BIO *b;
-char *in;
-int inl;
+static int rtcp_write(BIO *b, char *in, int inl)
{
int status, i, segment, length;
struct rpc_ctx *ctx;
{
int status, i, segment, length;
struct rpc_ctx *ctx;
@@
-240,11
+233,7
@@
int inl;
return(i);
}
return(i);
}
-static long rtcp_ctrl(b,cmd,num,ptr)
-BIO *b;
-int cmd;
-long num;
-char *ptr;
+static long rtcp_ctrl(BIO *b, int cmd, long num, char *ptr)
{
long ret=1;
{
long ret=1;
@@
-275,17
+264,12
@@
char *ptr;
return(ret);
}
return(ret);
}
-static int rtcp_gets(bp,buf,size)
-BIO *bp;
-char *buf;
-int size;
+static int rtcp_gets(BIO *bp, char *buf, int size)
{
return(0);
}
{
return(0);
}
-static int rtcp_puts(bp,str)
-BIO *bp;
-char *str;
+static int rtcp_puts(BIO *bp, char *str)
{
int length;
if (str == NULL) return(0);
{
int length;
if (str == NULL) return(0);