HomeSort by: relevance | last modified time | path
    Searched refs:comm (Results 1 - 25 of 363) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/usr.bin/comm/
Makefile 4 PROG= comm
  /src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
rpc_auth.c 35 initData(&hte->comm, 1);
36 hte->comm.hdr.u.ordinal = TCSD_ORD_OIAP;
39 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
45 result = hte->comm.hdr.u.result;
48 if (getData(TCSD_PACKET_TYPE_UINT32, 0, authHandle, 0, &hte->comm))
50 if (getData(TCSD_PACKET_TYPE_NONCE, 1, nonce0, 0, &hte->comm))
68 initData(&hte->comm, 4);
69 hte->comm.hdr.u.ordinal = TCSD_ORD_OSAP;
72 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
74 if (setData(TCSD_PACKET_TYPE_UINT16, 1, &entityType, 0, &hte->comm))
    [all...]
rpc_cmk.c 33 initData(&hte->comm, 3);
34 hte->comm.hdr.u.ordinal = TCSD_ORD_CMK_SETRESTRICTIONS;
37 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
39 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &restriction, 0, &hte->comm))
41 if (setData(TCSD_PACKET_TYPE_AUTH, 2, ownerAuth, 0, &hte->comm))
47 result = hte->comm.hdr.u.result;
50 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm))
65 initData(&hte->comm, 3);
66 hte->comm.hdr.u.ordinal = TCSD_ORD_CMK_APPROVEMA;
69 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
    [all...]
rpc_own.c 43 initData(&hte->comm, 9);
44 hte->comm.hdr.u.ordinal = TCSD_ORD_TAKEOWNERSHIP;
47 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
49 if (setData(TCSD_PACKET_TYPE_UINT16, 1, &protocolID, 0, &hte->comm))
51 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &encOwnerAuthSize, 0, &hte->comm))
53 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, encOwnerAuth, encOwnerAuthSize, &hte->comm))
55 if (setData(TCSD_PACKET_TYPE_UINT32, 4, &encSrkAuthSize, 0, &hte->comm))
57 if (setData(TCSD_PACKET_TYPE_PBYTE, 5, encSrkAuth, encSrkAuthSize, &hte->comm))
59 if (setData(TCSD_PACKET_TYPE_UINT32, 6, &srkInfoSize, 0, &hte->comm))
61 if (setData(TCSD_PACKET_TYPE_PBYTE, 7, srkInfo, srkInfoSize, &hte->comm))
    [all...]
rpc_dir.c 36 initData(&hte->comm, 4);
37 hte->comm.hdr.u.ordinal = TCSD_ORD_DIRWRITEAUTH;
40 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
42 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &dirIndex, 0, &hte->comm))
44 if (setData(TCSD_PACKET_TYPE_DIGEST, 2, newContents, 0, &hte->comm))
46 if (setData(TCSD_PACKET_TYPE_AUTH, 3, ownerAuth, 0, &hte->comm))
52 result = hte->comm.hdr.u.result;
55 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm))
69 initData(&hte->comm, 2);
70 hte->comm.hdr.u.ordinal = TCSD_ORD_DIRREAD
    [all...]
rpc_oper.c 31 initData(&hte->comm, 2);
32 hte->comm.hdr.u.ordinal = TCSD_ORD_SETOPERATORAUTH;
35 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
37 if (setData(TCSD_PACKET_TYPE_SECRET, 1, operatorAuth, 0, &hte->comm))
43 result = hte->comm.hdr.u.result;
rpc_pcr_extend.c 36 initData(&hte->comm, 3);
37 hte->comm.hdr.u.ordinal = TCSD_ORD_EXTEND;
40 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
42 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &pcrNum, 0, &hte->comm))
44 if (setData(TCSD_PACKET_TYPE_DIGEST, 2, &inDigest, 0, &hte->comm))
50 result = hte->comm.hdr.u.result;
53 if (getData(TCSD_PACKET_TYPE_DIGEST, 0, outDigest, 0, &hte->comm))
67 initData(&hte->comm, 2);
68 hte->comm.hdr.u.ordinal = TCSD_ORD_PCRREAD;
71 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
    [all...]
rpc_maint.c 39 initData(&hte->comm, 3);
40 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEMAINTENANCEARCHIVE;
43 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
45 if (setData(TCSD_PACKET_TYPE_BOOL, 1, &generateRandom, 0, &hte->comm))
47 if (setData(TCSD_PACKET_TYPE_AUTH, 2, ownerAuth, 0, &hte->comm))
53 result = hte->comm.hdr.u.result;
56 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm))
58 if (getData(TCSD_PACKET_TYPE_UINT32, 1, randomSize, 0, &hte->comm))
69 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, *random, *randomSize, &hte->comm)) {
79 if (getData(TCSD_PACKET_TYPE_UINT32, 3, archiveSize, 0, &hte->comm))
    [all...]
rpc_changeauth.c 43 initData(&hte->comm, 9);
44 hte->comm.hdr.u.ordinal = TCSD_ORD_CHANGEAUTH;
47 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
49 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &parentHandle, 0, &hte->comm))
51 if (setData(TCSD_PACKET_TYPE_UINT16, 2, &protocolID, 0, &hte->comm))
53 if (setData(TCSD_PACKET_TYPE_ENCAUTH, 3, newAuth, 0, &hte->comm))
55 if (setData(TCSD_PACKET_TYPE_UINT16, 4, &entityType, 0, &hte->comm))
57 if (setData(TCSD_PACKET_TYPE_UINT32, 5, &encDataSize, 0, &hte->comm))
59 if (setData(TCSD_PACKET_TYPE_PBYTE, 6, encData, encDataSize, &hte->comm))
61 if (setData(TCSD_PACKET_TYPE_AUTH, 7, ownerAuth, 0, &hte->comm))
    [all...]
rpc_random.c 35 initData(&hte->comm, 2);
36 hte->comm.hdr.u.ordinal = TCSD_ORD_GETRANDOM;
39 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
41 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &bytesRequested, 0, &hte->comm))
47 result = hte->comm.hdr.u.result;
50 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &bytesRequested, 0, &hte->comm)) {
60 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *randomBytes, bytesRequested, &hte->comm)) {
77 initData(&hte->comm, 3);
78 hte->comm.hdr.u.ordinal = TCSD_ORD_STIRRANDOM;
81 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
    [all...]
rpc.c 38 initData(struct tcsd_comm_data *comm, int parm_count)
41 __tspi_memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr));
42 comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr);
43 comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr);
44 comm->hdr.parm_offset = comm->hdr.type_offset + (sizeof(TCSD_PACKET_TYPE) * parm_count);
45 comm->hdr.packet_size = comm->hdr.parm_offset;
47 __tspi_memset(comm->buf, 0, comm->buf_size)
    [all...]
rpc_nv.c 37 initData(&hte->comm, 5);
38 hte->comm.hdr.u.ordinal = TCSD_ORD_NVDEFINEORRELEASESPACE;
40 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
42 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &cPubInfoSize, 0, &hte->comm))
44 if (setData(TCSD_PACKET_TYPE_PBYTE, 2, pPubInfo, cPubInfoSize, &hte->comm))
46 if (setData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encAuth, 0, &hte->comm))
49 if (setData(TCSD_PACKET_TYPE_AUTH, 4, pAuth, 0, &hte->comm))
55 result = hte->comm.hdr.u.result;
61 if (getData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &hte->comm)) {
83 initData(&hte->comm, 6)
    [all...]
rpc_counter.c 35 initData(&hte->comm, 2);
36 hte->comm.hdr.u.ordinal = TCSD_ORD_READCOUNTER;
39 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
41 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &idCounter, 0, &hte->comm))
47 result = hte->comm.hdr.u.result;
50 if (getData(TCSD_PACKET_TYPE_COUNTER_VALUE, 0, counterValue, 0, &hte->comm))
68 initData(&hte->comm, 5);
69 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATECOUNTER;
72 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
74 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &LabelSize, 0, &hte->comm))
    [all...]
rpc_ek.c 40 initData(&hte->comm, 4);
41 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEENDORSEMENTKEYPAIR;
44 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
46 if (setData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &hte->comm))
48 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &endorsementKeyInfoSize, 0, &hte->comm))
50 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, endorsementKeyInfo, endorsementKeyInfoSize, &hte->comm))
56 result = hte->comm.hdr.u.result;
59 if (getData(TCSD_PACKET_TYPE_UINT32, 0, endorsementKeySize, 0, &hte->comm)) {
70 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *endorsementKey, *endorsementKeySize, &hte->comm)) {
75 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &(checksum->digest), 0, &hte->comm)) {
    [all...]
rpc_certify.c 44 initData(&hte->comm, 6);
47 hte->comm.hdr.u.ordinal = TCSD_ORD_CERTIFYKEY;
50 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
52 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &certHandle, 0, &hte->comm))
54 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &keyHandle, 0, &hte->comm))
56 if (setData(TCSD_PACKET_TYPE_NONCE, 3, antiReplay, 0, &hte->comm))
59 if (setData(TCSD_PACKET_TYPE_AUTH, 4, certAuth, 0, &hte->comm))
62 if (setData(TCSD_PACKET_TYPE_AUTH, 4, &null_auth, 0, &hte->comm))
66 if (setData(TCSD_PACKET_TYPE_AUTH, 5, keyAuth, 0, &hte->comm))
69 if (setData(TCSD_PACKET_TYPE_AUTH, 5, &null_auth, 0, &hte->comm))
    [all...]
rpc_admin.c 34 initData(&hte->comm, 2);
35 hte->comm.hdr.u.ordinal = TCSD_ORD_SETOWNERINSTALL;
38 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
40 if (setData(TCSD_PACKET_TYPE_BOOL, 1, &state, 0, &hte->comm))
46 result = hte->comm.hdr.u.result;
57 initData(&hte->comm, 2);
58 hte->comm.hdr.u.ordinal = TCSD_ORD_DISABLEOWNERCLEAR;
61 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
64 if (setData(TCSD_PACKET_TYPE_AUTH, 1, ownerAuth, 0, &hte->comm))
70 result = hte->comm.hdr.u.result
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
rpc_dir.c 39 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
47 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &dirIndex, 0, &data->comm))
49 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &dirDigest, 0, &data->comm))
51 if (getData(TCSD_PACKET_TYPE_AUTH, 3, &auth, 0, &data->comm))
61 initData(&data->comm, 1);
62 if (setData(TCSD_PACKET_TYPE_AUTH, 0, &auth, 0, &data->comm)) {
66 done: initData(&data->comm, 0);
68 data->comm.hdr.u.result = result;
81 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
89 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &dirIndex, 0, &data->comm))
    [all...]
rpc_maint.c 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
45 if (getData(TCSD_PACKET_TYPE_AUTH, 1, &ownerAuth, 0, &data->comm))
55 initData(&data->comm, 1);
56 if (setData(TCSD_PACKET_TYPE_AUTH, 0, &ownerAuth, 0, &data->comm)) {
60 done: initData(&data->comm, 0);
62 data->comm.hdr.u.result = result;
77 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
85 if (getData(TCSD_PACKET_TYPE_BOOL, 1, &generateRandom, 0, &data->comm))
88 if (getData(TCSD_PACKET_TYPE_AUTH, 2, &ownerAuth, 0, &data->comm))
100 initData(&data->comm, 5)
    [all...]
rpc.c 98 initData(struct tcsd_comm_data *comm, int parm_count)
101 memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr));
102 comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr);
104 comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr);
105 comm->hdr.parm_offset = comm->hdr.type_offset +
107 comm->hdr.packet_size = comm->hdr.parm_offset;
110 memset(comm->buf, 0, comm->buf_size)
    [all...]
rpc_key.c 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
45 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm))
54 initData(&data->comm, 0);
55 data->comm.hdr.u.result = result;
72 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
80 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm))
83 result = getData(TCSD_PACKET_TYPE_AUTH, 2, &auth, 0, &data->comm);
99 initData(&data->comm, 3);
101 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) {
105 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &pubKeySize, 0, &data->comm)) {
    [all...]
rpc_pcr_extend.c 39 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
47 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &pcrIndex, 0, &data->comm))
49 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &inDigest, 0, &data->comm))
59 initData(&data->comm, 1);
60 if (setData(TCSD_PACKET_TYPE_DIGEST, 0, &outDigest, 0, &data->comm)) {
64 done: initData(&data->comm, 0);
66 data->comm.hdr.u.result = result;
78 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
86 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &pcrIndex, 0, &data->comm))
96 initData(&data->comm, 1)
    [all...]
rpc_changeauth.c 48 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
56 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &parentHandle, 0, &data->comm))
58 if (getData(TCSD_PACKET_TYPE_UINT16, 2, &protocolID, 0, &data->comm))
60 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 3, &newAuth, 0, &data->comm))
62 if (getData(TCSD_PACKET_TYPE_UINT16, 4, &entityType, 0, &data->comm))
64 if (getData(TCSD_PACKET_TYPE_UINT32, 5, &encDataSize, 0, &data->comm))
71 if (getData(TCSD_PACKET_TYPE_PBYTE, 6, encData, encDataSize, &data->comm)) {
75 if (getData(TCSD_PACKET_TYPE_AUTH, 7, &ownerAuth, 0, &data->comm)) {
79 if (getData(TCSD_PACKET_TYPE_AUTH, 8, &entityAuth, 0, &data->comm)) {
93 initData(&data->comm, 4)
    [all...]
rpc_nv.c 40 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &cPubInfoSize, 0, &data->comm))
55 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, pubInfo, cPubInfoSize, &data->comm)) {
60 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encAuth, 0, &data->comm)) {
65 if (getData(TCSD_PACKET_TYPE_AUTH, 4, &Auth, 0, &data->comm))
80 initData(&data->comm, 1);
82 if (setData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &data->comm)) {
87 done: initData(&data->comm, 0);
89 data->comm.hdr.u.result = result;
103 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
    [all...]
rpc_counter.c 38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &idCounter, 0, &data->comm))
56 initData(&data->comm, 1);
57 if (setData(TCSD_PACKET_TYPE_COUNTER_VALUE, 0, &counterValue, 0, &data->comm))
60 done: initData(&data->comm, 0);
62 data->comm.hdr.u.result = result;
78 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm))
86 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &LabelSize, 0, &data->comm))
94 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, &pLabel, LabelSize, &data->comm)) {
98 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encauth, 0, &data->comm)) {
    [all...]
  /src/external/apache2/mDNSResponder/dist/ServiceRegistration/
tls-mbedtls.c 157 comm_t *comm = ctx; local
158 ret = write(comm->io.fd, buf, len);
174 comm_t *comm = ctx; local
175 ret = read(comm->io.fd, buf, max);
190 srp_tls_listen_callback(comm_t *comm)
195 comm->tls_context = calloc(1, sizeof *comm->tls_context);
196 if (comm->tls_context == NULL) {
199 status = mbedtls_ssl_setup(&comm->tls_context->context, &tls_server_config);
206 mbedtls_ssl_set_bio(&comm->tls_context->context, comm, srp_tls_io_send, srp_tls_io_recv, NULL)
    [all...]

Completed in 21 milliseconds

1 2 3 4 5 6 7 8 91011>>