bss_acpt.c (160815) | bss_acpt.c (215697) |
---|---|
1/* crypto/bio/bss_acpt.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 326 unchanged lines hidden (view full) --- 335 336 ret=BIO_write(b->next_bio,in,inl); 337 BIO_copy_next_retry(b); 338 return(ret); 339 } 340 341static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr) 342 { | 1/* crypto/bio/bss_acpt.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 326 unchanged lines hidden (view full) --- 335 336 ret=BIO_write(b->next_bio,in,inl); 337 BIO_copy_next_retry(b); 338 return(ret); 339 } 340 341static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr) 342 { |
343 BIO *dbio; | |
344 int *ip; 345 long ret=1; 346 BIO_ACCEPT *data; 347 char **pp; 348 349 data=(BIO_ACCEPT *)b->ptr; 350 351 switch (cmd) --- 80 unchanged lines hidden (view full) --- 432 break; 433 case BIO_C_SET_BIND_MODE: 434 data->bind_mode=(int)num; 435 break; 436 case BIO_C_GET_BIND_MODE: 437 ret=(long)data->bind_mode; 438 break; 439 case BIO_CTRL_DUP: | 343 int *ip; 344 long ret=1; 345 BIO_ACCEPT *data; 346 char **pp; 347 348 data=(BIO_ACCEPT *)b->ptr; 349 350 switch (cmd) --- 80 unchanged lines hidden (view full) --- 431 break; 432 case BIO_C_SET_BIND_MODE: 433 data->bind_mode=(int)num; 434 break; 435 case BIO_C_GET_BIND_MODE: 436 ret=(long)data->bind_mode; 437 break; 438 case BIO_CTRL_DUP: |
440 dbio=(BIO *)ptr; 441/* if (data->param_port) EAY EAY | 439/* dbio=(BIO *)ptr; 440 if (data->param_port) EAY EAY |
442 BIO_set_port(dbio,data->param_port); 443 if (data->param_hostname) 444 BIO_set_hostname(dbio,data->param_hostname); 445 BIO_set_nbio(dbio,data->nbio); */ 446 break; 447 448 default: 449 ret=0; --- 30 unchanged lines hidden --- | 441 BIO_set_port(dbio,data->param_port); 442 if (data->param_hostname) 443 BIO_set_hostname(dbio,data->param_hostname); 444 BIO_set_nbio(dbio,data->nbio); */ 445 break; 446 447 default: 448 ret=0; --- 30 unchanged lines hidden --- |