Home
last modified time | relevance | path

Searched refs:bio (Results 1 – 6 of 6) sorted by relevance

/tool/
A Dsign.cc39 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_file())); in Sign() local
40 if (!bio || !BIO_read_filename(bio.get(), args_map["-key"].c_str())) { in Sign()
44 PEM_read_bio_PrivateKey(bio.get(), nullptr, nullptr, nullptr)); in Sign()
A Dtransport_common.cc282 void PrintConnectionInfo(BIO *bio, const SSL *ssl) { in PrintConnectionInfo() argument
286 BIO_printf(bio, " Resumed session: %s\n", in PrintConnectionInfo()
295 BIO_printf(bio, " Signature algorithm: %s\n", in PrintConnectionInfo()
299 BIO_printf(bio, " Secure renegotiation: %s\n", in PrintConnectionInfo()
301 BIO_printf(bio, " Extended master secret: %s\n", in PrintConnectionInfo()
307 BIO_printf(bio, " Next protocol negotiated: %.*s\n", in PrintConnectionInfo()
333 bio, " Early data: %s\n", in PrintConnectionInfo()
336 BIO_printf(bio, " Encrypted ClientHello: %s\n", in PrintConnectionInfo()
342 BIO_printf(bio, " Cert subject: "); in PrintConnectionInfo()
345 BIO_printf(bio, "\n Cert issuer: "); in PrintConnectionInfo()
[all …]
A Dserver.cc200 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in HandleWWW() local
201 if (!bio) { in HandleWWW()
206 BIO_puts(bio.get(), "HTTP/1.0 200 OK\r\nContent-Type: text/plain\r\n\r\n"); in HandleWWW()
207 PrintConnectionInfo(bio.get(), ssl); in HandleWWW()
226 if (BIO_mem_contents(bio.get(), &response, &response_len)) { in HandleWWW()
402 BIO *bio = BIO_new_socket(sock, BIO_CLOSE); in Server() local
404 SSL_set_bio(ssl.get(), bio, bio); in Server()
A Dgenrsa.cc50 bssl::UniquePtr<BIO> bio(BIO_new_fp(stdout, BIO_NOCLOSE)); in GenerateRSAKey() local
54 !PEM_write_bio_RSAPrivateKey(bio.get(), rsa.get(), NULL /* cipher */, in GenerateRSAKey()
A Dclient.cc167 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_file())); in LoadPrivateKey() local
168 if (!bio || !BIO_read_filename(bio.get(), file.c_str())) { in LoadPrivateKey()
171 bssl::UniquePtr<EVP_PKEY> pkey(PEM_read_bio_PrivateKey(bio.get(), nullptr, in LoadPrivateKey()
271 bssl::UniquePtr<BIO> bio(BIO_new_socket(sock, BIO_CLOSE)); in DoConnection() local
322 SSL_set_bio(ssl.get(), bio.get(), bio.get()); in DoConnection()
323 bio.release(); in DoConnection()
A Dtransport_common.h52 void PrintConnectionInfo(BIO *bio, const SSL *ssl);

Completed in 15 milliseconds