Lines Matching refs:sslfd
258 PRFileDesc *sslfd = NULL; in do_ldapssl_connect() local
386 if (( sslfd = SSL_ImportFD( NULL, soi.soinfo_prfd )) == NULL ) { in do_ldapssl_connect()
390 if ( SSL_OptionSet( sslfd, SSL_SECURITY, secure ) != SECSuccess || in do_ldapssl_connect()
391 SSL_OptionSet( sslfd, SSL_HANDSHAKE_AS_CLIENT, secure ) in do_ldapssl_connect()
392 != SECSuccess || ( secure && SSL_ResetHandshake( sslfd, in do_ldapssl_connect()
401 soi.soinfo_prfd = sslfd; in do_ldapssl_connect()
412 if (SSL_SetURL(sslfd, host) != SECSuccess) in do_ldapssl_connect()
418 sslfd = NULL; /* so we don't close the socket twice upon error */ in do_ldapssl_connect()
438 if ( NULL != sslfd ) { in do_ldapssl_connect()
439 PR_Close( sslfd ); in do_ldapssl_connect()
939 PRFileDesc *sslfd = NULL; in ldapssl_import_fd() local
974 if (( sslfd = SSL_ImportFD( NULL, soi.soinfo_prfd )) == NULL ) { in ldapssl_import_fd()
978 if ( SSL_OptionSet( sslfd, SSL_SECURITY, secure ) != SECSuccess || in ldapssl_import_fd()
979 SSL_OptionSet( sslfd, SSL_HANDSHAKE_AS_CLIENT, secure ) in ldapssl_import_fd()
980 != SECSuccess || ( secure && SSL_ResetHandshake( sslfd, in ldapssl_import_fd()
989 soi.soinfo_prfd = sslfd; in ldapssl_import_fd()
1013 if ( NULL != sslfd ) { in ldapssl_import_fd()
1018 soi.soinfo_prfd = sslfd; in ldapssl_import_fd()
1019 sslfd = PR_PopIOLayer( soi.soinfo_prfd, PR_TOP_IO_LAYER ); in ldapssl_import_fd()
1020 sslfd->dtor( sslfd ); in ldapssl_import_fd()