Searched refs:ssl (Results 1 – 4 of 4) sorted by relevance
/system/netd/server/dns/ |
D | DnsTlsTransport.cpp | 142 bssl::UniquePtr<SSL> ssl(SSL_new(ssl_ctx.get())); in sslConnect() local 144 SSL_set_bio(ssl.get(), bio.get(), bio.get()); in sslConnect() 156 int ret = SSL_connect(ssl.get()); in sslConnect() 162 const int ssl_err = SSL_get_error(ssl.get(), ret); in sslConnect() 187 bssl::UniquePtr<X509> cert(SSL_get_peer_certificate(ssl.get())); in sslConnect() 210 return ssl.release(); in sslConnect() 213 bool DnsTlsTransport::sslWrite(int fd, SSL *ssl, const uint8_t *buffer, int len) { in sslWrite() argument 218 int ret = SSL_write(ssl, buffer, len); in sslWrite() 222 const int ssl_err = SSL_get_error(ssl, ret); in sslWrite() 249 bool DnsTlsTransport::sslRead(int fd, SSL *ssl, uint8_t *buffer, int len) { in sslRead() argument [all …]
|
D | DnsTlsTransport.h | 59 bool sslWrite(int fd, SSL *ssl, const uint8_t *buffer, int len); 63 bool sslRead(int fd, SSL *ssl, uint8_t *buffer, int len);
|
/system/netd/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 270 bssl::UniquePtr<SSL> ssl(SSL_new(ctx_.get())); in requestHandler() local 271 SSL_set_fd(ssl.get(), client); in requestHandler() 275 if (SSL_accept(ssl.get()) <= 0) { in requestHandler() 279 success = handleOneRequest(ssl.get()); in requestHandler() 294 bool DnsTlsFrontend::handleOneRequest(SSL* ssl) { in handleOneRequest() argument 296 if (SSL_read(ssl, &queryHeader, 2) != 2) { in handleOneRequest() 302 if (SSL_read(ssl, &query, qlen) != qlen) { in handleOneRequest() 321 if (SSL_write(ssl, responseHeader, 2) != 2) { in handleOneRequest() 325 if (SSL_write(ssl, recv_buffer, rlen) != rlen) { in handleOneRequest()
|
D | dns_tls_frontend.h | 66 bool handleOneRequest(SSL* ssl);
|