/external/boringssl/src/crypto/stack/ |
D | stack.c | 99 size_t sk_num(const _STACK *sk) { in sk_num() argument 100 if (sk == NULL) { in sk_num() 103 return sk->num; in sk_num() 106 void sk_zero(_STACK *sk) { in sk_zero() argument 107 if (sk == NULL || sk->num == 0) { in sk_zero() 110 OPENSSL_memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero() 111 sk->num = 0; in sk_zero() 112 sk->sorted = 0; in sk_zero() 115 void *sk_value(const _STACK *sk, size_t i) { in sk_value() argument 116 if (!sk || i >= sk->num) { in sk_value() [all …]
|
D | stack_test.cc | 51 void operator()(STACK_OF(TEST_INT) *sk) const { sk_TEST_INT_free(sk); } in operator ()() 60 static void ExpectStackEquals(const STACK_OF(TEST_INT) *sk, in ExpectStackEquals() argument 62 EXPECT_EQ(vec.size(), sk_TEST_INT_num(sk)); in ExpectStackEquals() 65 const TEST_INT *obj = sk_TEST_INT_value(sk, i); in ExpectStackEquals() 77 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size())); in ExpectStackEquals() 78 EXPECT_FALSE(sk_TEST_INT_value(sk, vec.size() + 1)); in ExpectStackEquals() 82 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new_null()); in TEST() local 83 ASSERT_TRUE(sk); in TEST() 86 ExpectStackEquals(sk.get(), {}); in TEST() 89 EXPECT_FALSE(sk_TEST_INT_pop(sk.get())); in TEST() [all …]
|
/external/libnl/lib/ |
D | socket.c | 183 struct nl_sock *sk; in __alloc_socket() local 185 sk = calloc(1, sizeof(*sk)); in __alloc_socket() 186 if (!sk) in __alloc_socket() 189 sk->s_fd = -1; in __alloc_socket() 190 sk->s_cb = nl_cb_get(cb); in __alloc_socket() 191 sk->s_local.nl_family = AF_NETLINK; in __alloc_socket() 192 sk->s_peer.nl_family = AF_NETLINK; in __alloc_socket() 193 sk->s_seq_expect = sk->s_seq_next = time(0); in __alloc_socket() 196 sk->s_flags = NL_OWN_PORT; in __alloc_socket() 198 return sk; in __alloc_socket() [all …]
|
D | nl.c | 96 int nl_connect(struct nl_sock *sk, int protocol) in nl_connect() argument 106 if (sk->s_fd != -1) in nl_connect() 109 sk->s_fd = socket(AF_NETLINK, SOCK_RAW | flags, protocol); in nl_connect() 110 if (sk->s_fd < 0) { in nl_connect() 112 NL_DBG(4, "nl_connect(%p): socket() failed with %d\n", sk, errsv); in nl_connect() 117 if (!(sk->s_flags & NL_SOCK_BUFSIZE_SET)) { in nl_connect() 118 err = nl_socket_set_buffer_size(sk, 0, 0); in nl_connect() 123 if (_nl_socket_is_local_port_unspecified (sk)) { in nl_connect() 128 port = _nl_socket_generate_local_port_no_release(sk); in nl_connect() 131 NL_DBG(4, "nl_connect(%p): no more unused local ports.\n", sk); in nl_connect() [all …]
|
/external/boringssl/src/include/openssl/ |
D | stack.h | 141 OPENSSL_EXPORT size_t sk_num(const _STACK *sk); 145 OPENSSL_EXPORT void sk_zero(_STACK *sk); 149 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i); 153 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p); 157 OPENSSL_EXPORT void sk_free(_STACK *sk); 163 OPENSSL_EXPORT void sk_pop_free_ex(_STACK *sk, 171 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where); 176 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where); 181 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, const void *p); 194 OPENSSL_EXPORT int sk_find(const _STACK *sk, size_t *out_index, const void *p, [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sk_lookup_kern.c | 63 struct bpf_sock *sk; in bpf_sk_lookup_test0() local 75 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test0() 76 if (sk) in bpf_sk_lookup_test0() 77 bpf_sk_release(sk); in bpf_sk_lookup_test0() 78 return sk ? TC_ACT_OK : TC_ACT_UNSPEC; in bpf_sk_lookup_test0() 85 struct bpf_sock *sk; in bpf_sk_lookup_test1() local 87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test1() 88 if (sk) in bpf_sk_lookup_test1() 89 bpf_sk_release(sk); in bpf_sk_lookup_test1() 97 struct bpf_sock *sk; in bpf_sk_lookup_uaf() local [all …]
|
D | test_tcp_estats.c | 82 struct sock sk; member 83 #define inet_daddr sk.__sk_common.skc_daddr 84 #define inet_dport sk.__sk_common.skc_dport 93 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() argument 95 return (struct inet_sock *)sk; in inet_sk() 212 struct sock *sk) in tcp_estats_conn_id_init() argument 214 conn_id->localport = _(inet_sk(sk)->inet_sport); in tcp_estats_conn_id_init() 215 conn_id->remport = _(inet_sk(sk)->inet_dport); in tcp_estats_conn_id_init() 217 if (_(sk->sk_family) == AF_INET6) in tcp_estats_conn_id_init() 219 sk->sk_v6_rcv_saddr.s6_addr32, in tcp_estats_conn_id_init() [all …]
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.h | 135 int sk = socket(domain, type, protocol); in test_socket() local 136 if (-1 == sk) in test_socket() 138 return sk; in test_socket() 141 static inline int test_bind(int sk, struct sockaddr *addr, socklen_t addrlen) in test_bind() argument 143 int error = bind(sk, addr, addrlen); in test_bind() 149 static inline int test_bindx_add(int sk, struct sockaddr *addr, int count) in test_bindx_add() argument 151 int error = sctp_bindx(sk, addr, count, SCTP_BINDX_ADD_ADDR); in test_bindx_add() 157 static inline int test_listen(int sk, int backlog) in test_listen() argument 159 int error = listen(sk, backlog); in test_listen() 165 static inline int test_connect(int sk, struct sockaddr *addr, socklen_t addrlen) in test_connect() argument [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_socket_bind_listen.c | 85 int sk,pf_class; in main() local 102 sk = socket(-1, SOCK_STREAM, IPPROTO_SCTP); in main() 103 if (sk != -1 || errno != EAFNOSUPPORT) in main() 110 sk = socket(pf_class, -1, IPPROTO_SCTP); in main() 111 if (sk != -1 || errno != EINVAL) in main() 118 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 119 if (sk < 0) in main() 126 error = bind(sk, (struct sockaddr *)-1, sizeof(struct sockaddr_in)); in main() 138 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)-2); in main() 165 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main() [all …]
|
D | test_1_to_1_send.c | 69 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local 85 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 107 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main() 149 count = send(sk, (char *)0x1, len_snd, flag); in main() 174 close(sk); in main() 178 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 196 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main() 203 count = send(sk, message, msg_count, flag); in main() 222 test_recv(sk, message_rcv, msg_count, flag); in main() 226 test_send(sk, message, 5 , flag); in main() [all …]
|
D | test_1_to_1_sendmsg.c | 76 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local 100 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 122 test_connect(sk, (struct sockaddr *) &conn_addr, len); in main() 182 count = sendmsg(sk, &outmessage, flag); in main() 193 count = sendmsg(sk, &outmessage, flag); in main() 203 count = sendmsg(sk, (struct msghdr *)-1, flag); in main() 212 count = sendmsg(sk, &outmessage, -1); in main() 221 count = sendmsg(sk, &outmessage, flag); in main() 230 count = sendmsg(sk, &outmessage, flag); in main() 255 close(sk); in main() [all …]
|
/external/e2fsprogs/misc/ |
D | findsuper.c | 102 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; } 118 loff_t sk=0, skl=0; in main() local 166 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main() 174 if (sk < 0) { in main() 175 fprintf(stderr, _("startkb should be positive, not %llu\n"),sk); in main() 186 printf(_("starting at %llu, with %u byte increments\n"), sk, skiprate); in main() 191 for (; lseek64(fd, sk, SEEK_SET) != -1 && in main() 192 read(fd, &ext2, 512) == 512; sk += skiprate) { in main() 197 if (sk && !(sk & (interval - 1))) { in main() 206 printf("\r%11Lu: %8LukB/s @ %s", sk, in main() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | x509_v3.c | 83 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ() argument 89 if (sk == NULL) in X509v3_get_ext_by_OBJ() 94 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ() 96 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ() 103 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument 109 if (sk == NULL) in X509v3_get_ext_by_critical() 114 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical() 116 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical() 146 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF() 154 if ((sk = sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF() [all …]
|
D | x509name.c | 120 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ() 126 sk = name->entries; in X509_NAME_get_index_by_OBJ() 127 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ() 129 ne = sk_X509_NAME_ENTRY_value(sk, lastpos); in X509_NAME_get_index_by_OBJ() 149 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry() 154 sk = name->entries; in X509_NAME_delete_entry() 155 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry() 156 n = sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry() 163 set_prev = (sk_X509_NAME_ENTRY_value(sk, loc - 1))->set; in X509_NAME_delete_entry() 166 set_next = sk_X509_NAME_ENTRY_value(sk, loc)->set; in X509_NAME_delete_entry() [all …]
|
/external/boringssl/src/crypto/ |
D | ex_data.c | 171 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 172 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data() 173 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 179 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data() 183 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data() 189 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data() 194 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data() 197 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data() 229 ad->sk = NULL; in CRYPTO_new_ex_data() 234 if (ad->sk == NULL) { in CRYPTO_free_ex_data() [all …]
|
/external/libnl/tests/ |
D | test-create-bridge.c | 8 int create_bridge(struct nl_sock *sk, struct nl_cache *link_cache, const char *name) { in create_bridge() argument 19 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in create_bridge() 31 struct nl_sock *sk; in main() local 34 sk = nl_socket_alloc(); in main() 35 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main() 40 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main() 45 if ((err = create_bridge(sk, link_cache, TEST_BRIDGE_NAME)) < 0) { in main() 50 nl_cache_refill(sk, link_cache); in main() 59 if ((err = rtnl_link_enslave(sk, link, ltap)) < 0) { in main() 77 nl_socket_free(sk); in main()
|
D | test-create-vlan.c | 9 struct nl_sock *sk; in main() local 12 sk = nl_socket_alloc(); in main() 13 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main() 18 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main() 34 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main() 40 nl_close(sk); in main()
|
D | test-create-veth.c | 8 struct nl_sock *sk; in main() local 12 sk = nl_socket_alloc(); in main() 13 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main() 19 rtnl_link_veth_add(sk, "veth2", "veth3", getpid()); in main() 31 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main() 39 nl_close(sk); in main()
|
D | test-create-macvlan.c | 9 struct nl_sock *sk; in main() local 13 sk = nl_socket_alloc(); in main() 14 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) { in main() 19 if ((err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache)) < 0) { in main() 39 if ((err = rtnl_link_add(sk, link, NLM_F_CREATE)) < 0) { in main() 45 nl_close(sk); in main()
|
/external/skia/site/user/modules/ |
D | skottie.md | 21 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e6741dda67629da1f80c254dad3df865" width=200 h… 24 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ffea72cf6be48fa061671c124ed7789c" width=200 h… 27 …<skottie-inline-sk src="https://skottie.skia.org/_/j/00e850cdbed7304985eaefe98a4e8a9c" width=200 h… 30 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e1aca009d5ebec9bd122b87b018bb673" width=200 h… 33 …<skottie-inline-sk src="https://skottie.skia.org/_/j/821fd79dd7437b97ba891e7a00970a06" width=200 h… 36 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ad63f250084685c96edd9b52ae2f436b" width=200 h… 39 …<skottie-inline-sk src="https://skottie.skia.org/_/j/40f78ddc751c16348a08e1d61d3e78b1" width=200 h… 42 …<skottie-inline-sk src="https://skottie.skia.org/_/j/fc42db7c75741437b5cb0e90b3febc65" width=200 h…
|
/external/skqp/site/user/modules/ |
D | skottie.md | 21 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e6741dda67629da1f80c254dad3df865" width=200 h… 24 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ffea72cf6be48fa061671c124ed7789c" width=200 h… 27 …<skottie-inline-sk src="https://skottie.skia.org/_/j/00e850cdbed7304985eaefe98a4e8a9c" width=200 h… 30 …<skottie-inline-sk src="https://skottie.skia.org/_/j/e1aca009d5ebec9bd122b87b018bb673" width=200 h… 33 …<skottie-inline-sk src="https://skottie.skia.org/_/j/821fd79dd7437b97ba891e7a00970a06" width=200 h… 36 …<skottie-inline-sk src="https://skottie.skia.org/_/j/ad63f250084685c96edd9b52ae2f436b" width=200 h… 39 …<skottie-inline-sk src="https://skottie.skia.org/_/j/40f78ddc751c16348a08e1d61d3e78b1" width=200 h… 42 …<skottie-inline-sk src="https://skottie.skia.org/_/j/fc42db7c75741437b5cb0e90b3febc65" width=200 h…
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_macsec_linux.c | 43 struct nl_sock *sk; member 52 struct nl_sock *sk; member 134 ctx->sk = nl_socket_alloc(); in init_genl_ctx() 135 if (!ctx->sk) { in init_genl_ctx() 140 if (genl_connect(ctx->sk) < 0) { in init_genl_ctx() 146 ctx->macsec_genl_id = genl_ctrl_resolve(ctx->sk, "macsec"); in init_genl_ctx() 155 nl_socket_modify_cb(ctx->sk, NL_CB_VALID, NL_CB_CUSTOM, dump_callback, in init_genl_ctx() 161 nl_socket_free(ctx->sk); in init_genl_ctx() 162 ctx->sk = NULL; in init_genl_ctx() 171 if (!drv->sk) in try_commit() [all …]
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncoding.java | 57 public static byte[] encodeUserPrivateKey(PrivateKey sk) { in encodeUserPrivateKey() argument 58 return sk.getEncoded(); in encodeUserPrivateKey() 83 public static byte[] encodeKeyAgreementPrivateKey(PrivateKey sk) { in encodeKeyAgreementPrivateKey() argument 84 if (isLegacyPrivateKey(sk)) { in encodeKeyAgreementPrivateKey() 85 return PublicKeyProtoUtil.encodeDh2048PrivateKey((DHPrivateKey) sk); in encodeKeyAgreementPrivateKey() 87 return sk.getEncoded(); in encodeKeyAgreementPrivateKey() 107 public static byte[] encodeSigningPrivateKey(PrivateKey sk) { in encodeSigningPrivateKey() argument 108 return sk.getEncoded(); in encodeSigningPrivateKey() 123 public static boolean isLegacyPrivateKey(PrivateKey sk) { in isLegacyPrivateKey() argument 124 if (sk instanceof ECPrivateKey) { in isLegacyPrivateKey()
|
/external/libnl/lib/route/ |
D | route.c | 80 int rtnl_route_alloc_cache(struct nl_sock *sk, int family, int flags, in rtnl_route_alloc_cache() argument 92 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_route_alloc_cache() 133 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument 141 err = nl_send_auto_complete(sk, msg); in rtnl_route_add() 146 return wait_for_ack(sk); in rtnl_route_add() 155 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument 163 err = nl_send_auto_complete(sk, msg); in rtnl_route_delete() 168 return wait_for_ack(sk); in rtnl_route_delete()
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt02.c | 71 static int sk; variable 81 if (sk > 0) in cleanup() 82 SAFE_CLOSE(sk); in cleanup() 98 sk = SAFE_SOCKET(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in create_skbuf() 99 TEST(setsockopt(sk, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver))); in create_skbuf() 105 return setsockopt(sk, SOL_PACKET, PACKET_RX_RING, &req, sizeof(req)); in create_skbuf() 135 SAFE_CLOSE(sk); in run()
|