Home
last modified time | relevance | path

Searched refs:as_ptr (Results 1 - 25 of 32) sorted by relevance

12

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dx509.rs69 PEM_read_bio_X509(bio.as_ptr(), ptr::null_mut(), None, ptr::null_mut())
78 let ptr = check_ptr(unsafe { d2i_X509(ptr::null_mut(), &mut der.as_ptr(), len) })?;
90 let r = PEM_read_bio_X509(bio.as_ptr(), ptr::null_mut(), None, ptr::null_mut());
111 unsafe { X509_get_version(self.as_ptr() as *const _) }
116 X509_get_subject_name(self.as_ptr() as *const _)
122 X509_get_issuer_name(self.as_ptr() as *const _)
128 X509_get_pubkey(self.as_ptr() as *mut _)
133 unsafe { X509_verify(self.as_ptr() as *mut _, pkey.as_ptr()) }
140 let _ = X509_NAME_oneline(self.as_ptr() a
[all...]
H A Dforeign.rs27 fn as_ptr(&self) -> *mut Self::CStruct; in as_ptr() functions
50 fn as_ptr(&self) -> *mut Self::CStruct { in as_ptr() functions
80 fn as_ptr(&self) -> *mut $ctype { in as_ptr() functions
H A Dbio.rs51 buf.as_ptr() as *const _,
58 pub(crate) fn as_ptr(&self) -> *mut BIO {
86 let ptr = check_ptr(BIO_meth_new(BIO_TYPE_NONE, b"rust\0".as_ptr() as *const _))?; in new()
/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs27 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_001()
41 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_002()
47 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_002()
76 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_003()
82 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_003()
116 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_004()
121 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_004()
150 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), MEMORY_SIZE) }; in test_ashmem_ffi_write_read_005()
156 let c_content_ptr: *const ashmem::ffi::c_void = unsafe { ashmem::ffi::AsVoidPtr(c_content.as_ptr()) }; in test_ashmem_ffi_write_read_005()
182 let ashmem = unsafe { ashmem::ffi::CreateAshmemStd(c_name.as_ptr(), in test_ashmem_ffi_invalid_001()
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
H A Dctx.rs81 SSL_CTX_up_ref(self.as_ptr()); in to_owned()
82 SslContext::from_ptr(self.as_ptr()) in to_owned()
97 let ptr = check_ptr(unsafe { SSL_CTX_new(method.as_ptr()) })?;
177 SSL_CTX_load_verify_locations(ptr, file.as_ptr() as *const _, ptr::null())
190 check_ret(unsafe { SSL_CTX_set_cipher_list(ptr, list.as_ptr() as *const _) }).map(|_| ())
210 SSL_CTX_use_certificate_file(ptr, file.as_ptr() as *const _, file_type.as_raw())
226 check_ret(unsafe { SSL_CTX_use_certificate_chain_file(ptr, file.as_ptr() as *const _) })
250 match unsafe { SSL_CTX_set_alpn_protos(ptr, protocols.as_ptr(), protocols.len() as c_uint) }
272 SSL_CTX_set_cert_store(ptr, cert_store.as_ptr());
317 list.as_ptr() a
[all...]
H A Dssl_base.rs54 let ptr = check_ptr(SSL_new(ctx.as_ptr()))?;
61 self.as_ptr()
75 let ret = unsafe { SSL_connect(stream.ssl.as_ptr()) };
98 unsafe { SslErrorCode::from_int(SSL_get_error(self.as_ptr(), err)) }
103 let ptr = SSL_state_string_long(self.as_ptr()); in ssl_status()
110 unsafe { X509VerifyResult::from_raw(SSL_get_verify_result(self.as_ptr()) as c_int) }
114 unsafe { SSL_get_rbio(self.as_ptr()) }
119 unsafe { SSL_read(self.as_ptr(), buf.as_ptr() as *mut c_void, len) }
124 unsafe { SSL_write(self.as_ptr(), bu
[all...]
H A Dmethod.rs18 pub(crate) fn as_ptr(&self) -> *const SSL_METHOD {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dqueue.rs144 node.value.as_ptr().write(MaybeUninit::new(value)); in send_inner()
188 let block_ptr = head.block.as_ptr();
196 let value = unsafe { node.value.as_ptr().read().assume_init() };
263 let mut block_ptr = head.block.as_ptr(); in drop()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/
H A Dsocket.rs67 match syscall!(bind(self.socket, raw_addr.as_ptr(), addr_length)) {
83 match syscall!(connect(self.socket, raw_addr.as_ptr(), addr_length)) {
H A Dlistener.rs86 let ret = unsafe { trans_addr_2_socket(addr.as_ptr()) }; in accept()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/tcp/
H A Dsocket.rs69 bind(self.socket as _, raw_addr.as_ptr(), raw_addr_length),
97 connect(self.socket as _, socket_addr.as_ptr(), socket_addr_length),
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Dsocket_addr.rs26 pub(crate) fn as_ptr(&self) -> *const sockaddr {
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/udp/
H A Dsocket.rs49 match syscall!(bind(self.socket, raw_addr.as_ptr(), addr_length)) {
/commonlibrary/rust/ylong_runtime/ylong_ffrt/src/
H A Dtask.rs60 ffrt_task_attr_set_name(attr_ptr, c_name.as_ptr()); in set_name()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/
H A Dsocket_addr.rs29 pub(crate) fn as_ptr(&self) -> *const SOCKADDR {
H A Dafd.rs60 Buffer: AFD_HELPER_NAME.as_ptr() as *mut _,
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/udp/
H A Dsocket.rs65 win_bind(self.socket, raw_addr.as_ptr(), addr_length),
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/unix/
H A Dregistry.rs105 &*REGISTRY.as_ptr()
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dhttp_body.rs297 ptrs.push((data.as_ptr(), data.len())) in merge_chunks()
308 let start = buf.as_ptr(); in merge_chunks()
/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs195 let name_ptr = c_name.as_ptr(); in create_ashmem_instance()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dread_buf.rs244 .copy_from_nonoverlapping(buf.as_ptr(), buf.len()); in append()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
H A Dpinning.rs192 EVP_DigestUpdate(md_ctx, pub_key.as_ptr(), len);
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
H A Dsys.rs87 let name = unsafe { CStr::from_ptr(name_buf.as_ptr()) }.to_owned();
136 buf.as_ptr().cast::<libc::c_void>(), in write()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Darray.rs151 let value = unsafe { node.value.as_ptr().read().assume_init() };
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dlinked_list.rs155 if f(&mut *node.as_ptr()) {
172 let _ = unsafe { Box::from_raw(self.head.as_ptr()) }; in drop()

Completed in 8 milliseconds

12