Lines Matching defs:p_ssl
230 ssl_read(void* p_ssl, char* p_buf, unsigned int len)
236 retval = SSL_read((SSL*) p_ssl, p_buf, len);
237 err = SSL_get_error((SSL*) p_ssl, retval);
245 ssl_write(void* p_ssl, const char* p_buf, unsigned int len)
251 retval = SSL_write((SSL*) p_ssl, p_buf, len);
252 err = SSL_get_error((SSL*) p_ssl, retval);
260 ssl_write_str(void* p_ssl, const struct mystr* p_str)
263 int ret = SSL_write((SSL*) p_ssl, str_getbuf(p_str), len);
274 SSL* p_ssl = get_ssl(p_sess, fd);
275 if (p_ssl == NULL)
279 p_sess->p_data_ssl = p_ssl;
280 setup_bio_callbacks(p_ssl);
302 SSL* p_ssl = SSL_new(p_sess->p_ssl_ctx);
303 if (p_ssl == NULL)
307 if (!SSL_set_fd(p_ssl, fd))
309 SSL_free(p_ssl);
312 if (SSL_accept(p_ssl) != 1)
315 SSL_free(p_ssl);
318 return p_ssl;
324 SSL* p_ssl = get_ssl(p_sess, VSFTP_COMMAND_FD);
325 if (p_ssl == NULL)
329 p_sess->p_control_ssl = p_ssl;
330 setup_bio_callbacks(p_ssl);
341 static void setup_bio_callbacks(SSL* p_ssl)
343 BIO* p_bio = SSL_get_rbio(p_ssl);
345 p_bio = SSL_get_wbio(p_ssl);
407 ssl_read(void* p_ssl, char* p_buf, unsigned int len)
409 (void) p_ssl;
416 ssl_write(void* p_ssl, const char* p_buf, unsigned int len)
418 (void) p_ssl;
425 ssl_write_str(void* p_ssl, const struct mystr* p_str)
427 (void) p_ssl;