Searched refs:bio (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/libs/binder/ |
D | RpcTlsUtils.cpp | 37 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(data.data(), static_cast<int>(data.size()))); in fromPem() local 38 return bssl::UniquePtr<T>(fn(bio.get(), nullptr, nullptr, nullptr)); in fromPem() 58 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in serialize() local 59 TEST_AND_RETURN({}, writeBio(bio.get(), object)); in serialize() 62 TEST_AND_RETURN({}, BIO_mem_contents(bio.get(), &data, &len)); in serialize() 103 return serialize(pkey, [](BIO* bio, EVP_PKEY* pkey) { in serializeUnencryptedPrivatekey() argument 104 return PEM_write_bio_PrivateKey(bio, pkey, nullptr /* enc */, nullptr /* kstr */, in serializeUnencryptedPrivatekey()
|
D | RpcTransportTls.cpp | 52 int socketNew(BIO* bio) { in socketNew() argument 53 BIO_set_data(bio, reinterpret_cast<void*>(-1)); in socketNew() 54 BIO_set_init(bio, 0); in socketNew() 57 int socketFree(BIO* bio) { in socketFree() argument 58 LOG_ALWAYS_FATAL_IF(bio == nullptr); in socketFree() 61 int socketRead(BIO* bio, char* buf, int size) { in socketRead() argument 62 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketRead() 64 BIO_clear_retry_flags(bio); in socketRead() 66 BIO_set_retry_read(bio); in socketRead() 71 int socketWrite(BIO* bio, const char* buf, int size) { in socketWrite() argument [all …]
|
/frameworks/native/libs/binder/tests/ |
D | RpcTlsUtilsTest.cpp | 24 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in toDebugString() local 25 int res = EVP_PKEY_print_public(bio.get(), pkey, 2, nullptr); in toDebugString() 27 if (BIO_write(bio.get(), buf.data(), buf.length()) <= 0) return {}; in toDebugString() 28 res = EVP_PKEY_print_private(bio.get(), pkey, 2, nullptr); in toDebugString() 30 if (BIO_write(bio.get(), buf.data(), buf.length()) <= 0) return {}; in toDebugString() 33 if (!BIO_mem_contents(bio.get(), &data, &len)) return {}; in toDebugString()
|