/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/ |
D | ssl_client2.c | 320 } opt; variable 470 opt.server_name = DFL_SERVER_NAME; in main() 471 opt.server_addr = DFL_SERVER_ADDR; in main() 472 opt.server_port = DFL_SERVER_PORT; in main() 473 opt.debug_level = DFL_DEBUG_LEVEL; in main() 474 opt.nbio = DFL_NBIO; in main() 475 opt.read_timeout = DFL_READ_TIMEOUT; in main() 476 opt.max_resend = DFL_MAX_RESEND; in main() 477 opt.request_page = DFL_REQUEST_PAGE; in main() 478 opt.request_size = DFL_REQUEST_SIZE; in main() [all …]
|
D | ssl_server2.c | 403 } opt; variable 902 opt.server_addr = DFL_SERVER_ADDR; in main() 903 opt.server_port = DFL_SERVER_PORT; in main() 904 opt.debug_level = DFL_DEBUG_LEVEL; in main() 905 opt.nbio = DFL_NBIO; in main() 906 opt.read_timeout = DFL_READ_TIMEOUT; in main() 907 opt.ca_file = DFL_CA_FILE; in main() 908 opt.ca_path = DFL_CA_PATH; in main() 909 opt.crt_file = DFL_CRT_FILE; in main() 910 opt.key_file = DFL_KEY_FILE; in main() [all …]
|
D | ssl_mail_client.c | 155 } opt; variable 397 opt.server_name = DFL_SERVER_NAME; in main() 398 opt.server_port = DFL_SERVER_PORT; in main() 399 opt.debug_level = DFL_DEBUG_LEVEL; in main() 400 opt.authentication = DFL_AUTHENTICATION; in main() 401 opt.mode = DFL_MODE; in main() 402 opt.user_name = DFL_USER_NAME; in main() 403 opt.user_pwd = DFL_USER_PWD; in main() 404 opt.mail_from = DFL_MAIL_FROM; in main() 405 opt.mail_to = DFL_MAIL_TO; in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/x509/ |
D | cert_write.c | 154 } opt; variable 229 opt.issuer_crt = DFL_ISSUER_CRT; in main() 230 opt.request_file = DFL_REQUEST_FILE; in main() 231 opt.subject_key = DFL_SUBJECT_KEY; in main() 232 opt.issuer_key = DFL_ISSUER_KEY; in main() 233 opt.subject_pwd = DFL_SUBJECT_PWD; in main() 234 opt.issuer_pwd = DFL_ISSUER_PWD; in main() 235 opt.output_file = DFL_OUTPUT_FILENAME; in main() 236 opt.subject_name = DFL_SUBJECT_NAME; in main() 237 opt.issuer_name = DFL_ISSUER_NAME; in main() [all …]
|
D | cert_req.c | 103 } opt; variable 163 opt.filename = DFL_FILENAME; in main() 164 opt.debug_level = DFL_DEBUG_LEVEL; in main() 165 opt.output_file = DFL_OUTPUT_FILENAME; in main() 166 opt.subject_name = DFL_SUBJECT_NAME; in main() 167 opt.key_usage = DFL_KEY_USAGE; in main() 168 opt.ns_cert_type = DFL_NS_CERT_TYPE; in main() 179 opt.filename = q; in main() 181 opt.output_file = q; in main() 184 opt.debug_level = atoi( q ); in main() [all …]
|
D | cert_app.c | 114 } opt; variable 187 opt.mode = DFL_MODE; in main() 188 opt.filename = DFL_FILENAME; in main() 189 opt.ca_file = DFL_CA_FILE; in main() 190 opt.crl_file = DFL_CRL_FILE; in main() 191 opt.ca_path = DFL_CA_PATH; in main() 192 opt.server_name = DFL_SERVER_NAME; in main() 193 opt.server_port = DFL_SERVER_PORT; in main() 194 opt.debug_level = DFL_DEBUG_LEVEL; in main() 195 opt.permissive = DFL_PERMISSIVE; in main() [all …]
|
D | crl_app.c | 66 } opt; variable 88 opt.filename = DFL_FILENAME; in main() 98 opt.filename = q; in main() 109 ret = mbedtls_x509_crl_parse_file( &crl, opt.filename ); in main()
|
D | req_app.c | 66 } opt; variable 88 opt.filename = DFL_FILENAME; in main() 98 opt.filename = q; in main() 109 ret = mbedtls_x509_csr_parse_file( &csr, opt.filename ); in main()
|
/net-tools-3.5.0/libcoap/src/ |
D | option.c | 31 coap_opt_t *opt = pdu->hdr->token + pdu->hdr->token_length; in options_start() local 32 return (*opt == COAP_PAYLOAD_START) ? NULL : opt; in options_start() 39 coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result) { in coap_opt_parse() argument 41 const coap_opt_t *opt_start = opt; /* store where parsing starts */ in coap_opt_parse() 43 assert(opt); assert(result); in coap_opt_parse() 56 result->delta = (*opt & 0xf0) >> 4; in coap_opt_parse() 57 result->length = *opt & 0x0f; in coap_opt_parse() 61 if (*opt != COAP_PAYLOAD_START) { in coap_opt_parse() 69 ADVANCE_OPT(opt,length,1); in coap_opt_parse() 70 result->delta = ((*opt & 0xff) << 8) + 269; in coap_opt_parse() [all …]
|
D | pdu.c | 173 coap_opt_t *opt; in coap_add_option() local 183 opt = (unsigned char *)pdu->hdr + pdu->length; in coap_add_option() 186 optsize = coap_opt_encode(opt, pdu->max_size - pdu->length, in coap_add_option() 205 coap_opt_t *opt; in coap_add_option_later() local 215 opt = (unsigned char *)pdu->hdr + pdu->length; in coap_add_option_later() 218 optsize = coap_opt_encode(opt, pdu->max_size - pdu->length, in coap_add_option_later() 230 return ((unsigned char*)opt) + optsize - len; in coap_add_option_later() 342 coap_opt_t *opt; in coap_pdu_parse() local 397 opt = (unsigned char *)(pdu->hdr + 1) + pdu->hdr->token_length; in coap_pdu_parse() 399 while (length && *opt != COAP_PAYLOAD_START) { in coap_pdu_parse() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/test/ |
D | udp_proxy.c | 133 } opt; variable 151 opt.server_addr = DFL_SERVER_ADDR; in get_options() 152 opt.server_port = DFL_SERVER_PORT; in get_options() 153 opt.listen_addr = DFL_LISTEN_ADDR; in get_options() 154 opt.listen_port = DFL_LISTEN_PORT; in get_options() 165 opt.server_addr = q; in get_options() 167 opt.server_port = q; in get_options() 169 opt.listen_addr = q; in get_options() 171 opt.listen_port = q; in get_options() 174 opt.duplicate = atoi( q ); in get_options() [all …]
|
/net-tools-3.5.0/libcoap/include/coap/ |
D | option.h | 47 size_t coap_opt_parse(const coap_opt_t *opt, 60 size_t coap_opt_size(const coap_opt_t *opt); 63 #define COAP_OPT_SIZE(opt) coap_opt_size(opt) argument 78 #define options_next(opt) \ argument 79 ((coap_opt_t *)((unsigned char *)(opt) + COAP_OPT_SIZE(opt))) 331 size_t coap_opt_setheader(coap_opt_t *opt, 351 size_t coap_opt_encode(coap_opt_t *opt, 367 unsigned short coap_opt_delta(const coap_opt_t *opt); 370 #define COAP_OPT_DELTA(opt) coap_opt_delta(opt) argument 373 #define COAP_OPT_SETDELTA(opt,val) \ argument [all …]
|
D | block.h | 44 #define COAP_OPT_BLOCK_LAST(opt) \ argument 45 (COAP_OPT_LENGTH(opt) ? (COAP_OPT_VALUE(opt) + (COAP_OPT_LENGTH(opt)-1)) : 0) 48 #define COAP_OPT_BLOCK_MORE(opt) \ argument 49 (COAP_OPT_LENGTH(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x08) : 0) 52 #define COAP_OPT_BLOCK_SZX(opt) \ argument 53 (COAP_OPT_LENGTH(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x07) : 0)
|
/net-tools-3.5.0/tinydtls-0.8.2/sha2/ |
D | sha2test.pl | 83 while ($opt = shift(@ARGV)) { 84 if ($opt =~ s/^\-//) { 85 if ($opt eq "256") { 87 } elsif ($opt eq "384") { 89 } elsif ($opt eq "512") { 91 } elsif ($opt =~ /^ALL$/i) { 93 } elsif ($opt =~ /^c256$/i) { 95 $opt = $c256 = shift(@ARGV); 96 $opt =~ s/\s+.*$//; 97 if (!$c256 || $c256 !~ /\%/ || !-x $opt) { [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/ |
D | key_app_writer.c | 104 } opt; variable 117 if( opt.output_format == OUTPUT_FORMAT_PEM ) in write_public_key() 159 if( opt.output_format == OUTPUT_FORMAT_PEM ) in write_private_key() 212 opt.mode = DFL_MODE; in main() 213 opt.filename = DFL_FILENAME; in main() 214 opt.output_mode = DFL_OUTPUT_MODE; in main() 215 opt.output_file = DFL_OUTPUT_FILENAME; in main() 216 opt.output_format = DFL_OUTPUT_FORMAT; in main() 228 opt.mode = MODE_PRIVATE; in main() 230 opt.mode = MODE_PUBLIC; in main() [all …]
|
D | gen_key.c | 146 } opt; variable 157 if( opt.format == FORMAT_PEM ) in write_private_key() 223 opt.type = DFL_TYPE; in main() 224 opt.rsa_keysize = DFL_RSA_KEYSIZE; in main() 225 opt.ec_curve = DFL_EC_CURVE; in main() 226 opt.filename = DFL_FILENAME; in main() 227 opt.format = DFL_FORMAT; in main() 228 opt.use_dev_random = DFL_USE_DEV_RANDOM; in main() 240 opt.type = MBEDTLS_PK_RSA; in main() 242 opt.type = MBEDTLS_PK_ECKEY; in main() [all …]
|
D | key_app.c | 82 } opt; variable 105 opt.mode = DFL_MODE; in main() 106 opt.filename = DFL_FILENAME; in main() 107 opt.password = DFL_PASSWORD; in main() 108 opt.password_file = DFL_PASSWORD_FILE; in main() 120 opt.mode = MODE_PRIVATE; in main() 122 opt.mode = MODE_PUBLIC; in main() 127 opt.filename = q; in main() 129 opt.password = q; in main() 131 opt.password_file = q; in main() [all …]
|
/net-tools-3.5.0/mbedtls-2.4.0/tests/scripts/ |
D | test-ref-configs.pl | 81 my $opt = $data->{'opt'}; 82 if( $opt ) 84 print "\nrunning ssl-opt.sh $opt\n"; 85 system( "tests/ssl-opt.sh $opt" )
|
D | all.sh | 260 tests/ssl-opt.sh 286 tests/ssl-opt.sh 300 tests/ssl-opt.sh -f Default 456 tests/ssl-opt.sh 481 tests/ssl-opt.sh --memcheck
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/util/ |
D | pem2der.c | 70 } opt; variable 202 opt.filename = DFL_FILENAME; in main() 203 opt.output_file = DFL_OUTPUT_FILENAME; in main() 214 opt.filename = q; in main() 216 opt.output_file = q; in main() 227 ret = load_file( opt.filename, &pem_buffer, &pem_size ); in main() 263 ret = write_file( opt.output_file, der_buffer, der_size ); in main()
|
/net-tools-3.5.0/mbedtls-2.4.0/scripts/ |
D | rename.pl | 31 my $opt = shift; 32 if( $opt eq '--' ) { 34 } elsif( $opt eq '-f' ) { 36 } elsif( $opt eq '-s' ) {
|
/net-tools-3.5.0/libcoap/examples/ |
D | client.c | 138 coap_list_t *opt; in coap_new_request() local 158 LL_FOREACH((*options), opt) { in coap_new_request() 159 coap_option *o = (coap_option *)(opt->data); in coap_new_request() 756 unsigned short opt; in set_blocksize() local 760 opt = method == COAP_REQUEST_GET ? COAP_OPTION_BLOCK2 : COAP_OPTION_BLOCK1; in set_blocksize() 762 block.m = (opt == COAP_OPTION_BLOCK1) && in set_blocksize() 768 coap_insert(&optlist, new_option_node(opt, opt_length, buf)); in set_blocksize() 1039 int opt, res; in main() local 1043 while ((opt = getopt(argc, argv, "Na:b:e:f:g:m:p:s:t:o:v:A:B:O:P:T:")) != -1) { in main() 1044 switch (opt) { in main()
|
/net-tools-3.5.0/tinydtls-0.8.2/tests/ |
D | dtls-server.c | 279 int fd, opt, result; local 294 while ((opt = getopt(argc, argv, "A:p:v:")) != -1) { 295 switch (opt) {
|
D | dtls-client.c | 349 int opt, res; local 362 while ((opt = getopt(argc, argv, "p:o:v:" PSK_OPTIONS)) != -1) { 363 switch (opt) {
|
/net-tools-3.5.0/ |
D | echo-server.c | 387 int opt = 1; in main() local 483 ret = setsockopt(tcp4, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)); in main() 487 ret = setsockopt(tcp6, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)); in main()
|