• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/apps/

Lines Matching refs:con

178 static void print_stuff(BIO *berr,SSL *con,int full);
251 SSL *con=NULL,*con2=NULL;
625 con=SSL_new(ctx);
627 if (con && (con->kssl_ctx = kssl_ctx_new()) != NULL)
629 kssl_ctx_setstring(con->kssl_ctx, KSSL_SERVER, host);
632 /* SSL_set_cipher_list(con,"RC4-MD5"); */
656 if (c_Pause & 0x01) con->debug=1;
658 if ( SSL_version(con) == DTLS1_VERSION)
686 SSL_set_options(con, SSL_OP_NO_QUERY_MTU);
687 SSL_set_mtu(con, mtu);
708 con->debug=1;
714 SSL_set_msg_callback(con, msg_cb);
715 SSL_set_msg_callback_arg(con, bio_c_out);
718 SSL_set_bio(con,sbio,sbio);
719 SSL_set_connect_state(con);
722 width=SSL_get_fd(con)+1;
829 if (SSL_in_init(con) && !SSL_total_renegotiations(con))
840 print_stuff(bio_c_out,con,full_log);
854 SSL_shutdown(con);
855 SSL_set_connect_state(con);
856 SHUTDOWN(SSL_get_fd(con));
862 ssl_pending = read_ssl && SSL_pending(con);
873 FD_SET(SSL_get_fd(con),&readfds);
875 FD_SET(SSL_get_fd(con),&writefds);
879 FD_SET(SSL_get_fd(con),&readfds);
881 FD_SET(SSL_get_fd(con),&writefds);
939 if (!ssl_pending && FD_ISSET(SSL_get_fd(con),&writefds))
941 k=SSL_write(con,&(cbuf[cbuf_off]),
943 switch (SSL_get_error(con,k))
949 /* we have done a write(con,NULL,0); */
1033 else if (ssl_pending || FD_ISSET(SSL_get_fd(con),&readfds))
1036 { static int iiii; if (++iiii == 52) { SSL_renegotiate(con); iiii=0; } }
1039 k=SSL_read(con,sbuf,1024 /* BUFSIZZ */ );
1042 k=SSL_read(con,sbuf,16);
1044 printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240));
1048 switch (SSL_get_error(con,k))
1133 SSL_renegotiate(con);
1150 SSL_shutdown(con);
1151 SHUTDOWN(SSL_get_fd(con));
1154 if(prexit) print_stuff(bio_c_out,con,1);
1155 if (con != NULL) SSL_free(con);