~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to crypto/bio/bio_lib.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
int BIO_read(BIO *b, void *out, int outl)
145
145
        {
146
146
        int i;
147
 
        long (*cb)();
 
147
        long (*cb)(BIO *,int,const char *,int,long,long);
148
148
 
149
149
        if ((b == NULL) || (b->method == NULL) || (b->method->bread == NULL))
150
150
                {
176
176
int BIO_write(BIO *b, const void *in, int inl)
177
177
        {
178
178
        int i;
179
 
        long (*cb)();
 
179
        long (*cb)(BIO *,int,const char *,int,long,long);
180
180
 
181
181
        if (b == NULL)
182
182
                return(0);
211
211
int BIO_puts(BIO *b, const char *in)
212
212
        {
213
213
        int i;
214
 
        long (*cb)();
 
214
        long (*cb)(BIO *,int,const char *,int,long,long);
215
215
 
216
216
        if ((b == NULL) || (b->method == NULL) || (b->method->bputs == NULL))
217
217
                {
244
244
int BIO_gets(BIO *b, char *in, int inl)
245
245
        {
246
246
        int i;
247
 
        long (*cb)();
 
247
        long (*cb)(BIO *,int,const char *,int,long,long);
248
248
 
249
249
        if ((b == NULL) || (b->method == NULL) || (b->method->bgets == NULL))
250
250
                {
305
305
long BIO_ctrl(BIO *b, int cmd, long larg, void *parg)
306
306
        {
307
307
        long ret;
308
 
        long (*cb)();
 
308
        long (*cb)(BIO *,int,const char *,int,long,long);
309
309
 
310
310
        if (b == NULL) return(0);
311
311
 
332
332
long BIO_callback_ctrl(BIO *b, int cmd, void (*fp)(struct bio_st *, int, const char *, int, long, long))
333
333
        {
334
334
        long ret;
335
 
        long (*cb)();
 
335
        long (*cb)(BIO *,int,const char *,int,long,long);
336
336
 
337
337
        if (b == NULL) return(0);
338
338
 
339
339
        if ((b->method == NULL) || (b->method->callback_ctrl == NULL))
340
340
                {
341
 
                BIOerr(BIO_F_BIO_CTRL,BIO_R_UNSUPPORTED_METHOD);
 
341
                BIOerr(BIO_F_BIO_CALLBACK_CTRL,BIO_R_UNSUPPORTED_METHOD);
342
342
                return(-2);
343
343
                }
344
344