Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 176) sorted by relevance

12345678

/openssl/apps/
H A Dopenssl.c248 arg.argv = NULL; in main()
257 argv = copy_argv(&argc, argv); in main()
288 && (strcmp(argv[1], "-help") == 0 || strcmp(argv[1], "--help") == 0 in main()
289 || strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--h") == 0); in main()
292 || strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--v") == 0); in main()
295 argv++; in main()
298 argv[0] = pname; in main()
314 OPENSSL_free(arg.argv); in main()
412 f.name = argv[0]; in do_cmd()
430 f.name = argv[0]; in do_cmd()
[all …]
H A Drand.c49 int rand_main(int argc, char **argv) in rand_main() argument
61 prog = opt_init(argc, argv, rand_options); in rand_main()
98 argv = opt_rest(); in rand_main()
107 if (!strcmp(argv[0], "max")) { in rand_main()
125 while (argv[0][factoridx]) { in rand_main()
126 if (!isdigit((int)(argv[0][factoridx]))) { in rand_main()
127 switch(argv[0][factoridx]) { in rand_main()
142 &argv[0][factoridx]); in rand_main()
150 if (shift != 0 && strlen(&argv[0][factoridx]) != 1) { in rand_main()
152 &argv[0][factoridx]); in rand_main()
[all …]
H A Dprime.c60 int prime_main(int argc, char **argv) in prime_main() argument
67 prog = opt_init(argc, argv, prime_options); in prime_main()
106 argv = opt_rest(); in prime_main()
136 for ( ; *argv; argv++) { in prime_main()
137 int r = check_num(argv[0], hex); in prime_main()
140 r = hex ? BN_hex2bn(&bn, argv[0]) : BN_dec2bn(&bn, argv[0]); in prime_main()
143 BIO_printf(bio_err, "Failed to process value (%s)\n", argv[0]); in prime_main()
149 argv[0], in prime_main()
H A Derrstr.c34 int errstr_main(int argc, char **argv) in errstr_main() argument
41 prog = opt_init(argc, argv, errstr_options); in errstr_main()
64 for (argv = opt_rest(); *argv != NULL; argv++) { in errstr_main()
65 if (sscanf(*argv, "%lx", &l) <= 0) { in errstr_main()
H A Dengine.c297 int engine_main(int argc, char **argv) in engine_main() argument
317 prog = argv[0]; in engine_main()
318 while ((argv1 = argv[1]) != NULL && *argv1 != '-') { in engine_main()
321 argv++; in engine_main()
323 argv[0] = prog; in engine_main()
324 opt_init(argc, argv, engine_options); in engine_main()
365 argv = opt_rest(); in engine_main()
366 for ( ; *argv; argv++) { in engine_main()
367 if (**argv == '-') { in engine_main()
373 sk_OPENSSL_CSTRING_push(engines, *argv); in engine_main()
H A Ddsaparam.c65 int dsaparam_main(int argc, char **argv) in dsaparam_main() argument
77 prog = opt_init(argc, argv, dsaparam_options); in dsaparam_main()
134 argv = opt_rest(); in dsaparam_main()
136 if (!opt_int(argv[0], &num) || num < 0) in dsaparam_main()
138 if (!opt_int(argv[1], &numqbits) || numqbits < 0) in dsaparam_main()
141 if (!opt_int(argv[0], &num) || num < 0) in dsaparam_main()
H A Dkdf.c70 int kdf_main(int argc, char **argv) in kdf_main() argument
84 prog = opt_init(argc, argv, kdf_options); in kdf_main()
137 argv = opt_rest(); in kdf_main()
141 if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0], in kdf_main()
143 BIO_printf(bio_err, "Invalid KDF name %s\n", argv[0]); in kdf_main()
H A Dgendsa.c54 int gendsa_main(int argc, char **argv) in gendsa_main() argument
67 prog = opt_init(argc, argv, gendsa_options); in gendsa_main()
111 argv = opt_rest(); in gendsa_main()
112 dsaparams = argv[0]; in gendsa_main()
H A Dmac.c74 int mac_main(int argc, char **argv) in mac_main() argument
93 prog = opt_init(argc, argv, mac_options); in mac_main()
142 argv = opt_rest(); in mac_main()
144 mac = EVP_MAC_fetch(app_get0_libctx(), argv[0], app_get0_propq()); in mac_main()
146 BIO_printf(bio_err, "Invalid MAC name %s\n", argv[0]); in mac_main()
/openssl/test/
H A Dssl_old_test.c896 int main(int argc, char *argv[]) in main() argument
988 argv++; in main()
1023 psk_key = *(++argv); in main()
1059 i = strlen(argv[0]); in main()
1067 cipher = *(++argv); in main()
1075 CApath = *(++argv); in main()
1079 CAfile = *(++argv); in main()
1216 config = *(++argv); in main()
1219 arg = argv[0]; in main()
1220 argn = argv[1]; in main()
[all …]
H A Dmoduleloadtest.c40 int main(int argc, char *argv[]) in main() argument
45 fprintf(stderr, "Usage: %s sharedobject [ entrypoint ]\n", argv[0]); in main()
49 m = argv[1]; in main()
50 s = argc == 3 ? argv[2] : NULL; in main()
H A Dmemleaktest.c35 int main(int argc, char *argv[]) in main() argument
55 if (argv[1] && strcmp(argv[1], "freeit") == 0) { in main()
/openssl/demos/pkcs12/
H A Dpkwrite.c18 int main(int argc, char **argv) in main() argument
30 if ((fp = fopen(argv[1], "r")) == NULL) { in main()
31 fprintf(stderr, "Error opening file %s\n", argv[1]); in main()
38 p12 = PKCS12_create(argv[2], argv[3], pkey, cert, NULL, 0, 0, 0, 0, 0); in main()
44 if ((fp = fopen(argv[4], "wb")) == NULL) { in main()
45 fprintf(stderr, "Error opening file %s\n", argv[4]); in main()
H A Dpkread.c48 int main(int argc, char **argv) in main() argument
63 if ((fp = fopen(argv[1], "rb")) == NULL) { in main()
64 fprintf(stderr, "Error opening file %s\n", argv[1]); in main()
74 if (!PKCS12_parse(p12, argv[2], &pkey, &cert, &ca)) { in main()
81 if ((fp = fopen(argv[3], "w")) == NULL) { in main()
82 fprintf(stderr, "Error opening file %s\n", argv[3]); in main()
/openssl/fuzz/
H A Ddriver.c18 int LLVMFuzzerInitialize(int *argc, char ***argv);
21 int LLVMFuzzerInitialize(int *argc, char ***argv) in LLVMFuzzerInitialize() argument
23 return FuzzerInitialize(argc, argv); in LLVMFuzzerInitialize()
35 int main(int argc, char** argv) in main() argument
37 FuzzerInitialize(&argc, &argv); in main()
H A Dtest-corpus.c61 int main(int argc, char **argv) { in main() argument
64 FuzzerInitialize(&argc, &argv); in main()
67 size_t dirname_len = strlen(argv[n]); in main()
76 while ((filename = OPENSSL_DIR_read(&ctx, argv[n])) != NULL) { in main()
82 strcpy(pathname, argv[n]); in main()
96 testfile(argv[n]); in main()
/openssl/test/testutil/
H A Doptions.c41 char **argv = opt_rest(); in test_get_argument() local
44 if ((int)n >= opt_num_rest() || argv == NULL) in test_get_argument()
47 return argv[n]; in test_get_argument()
53 char **argv = opt_rest(); in opt_check_usage() local
63 i, argv[i]); in opt_check_usage()
H A Dmain.c15 int main(int argc, char *argv[]) in main() argument
27 if (!setup_test_framework(argc, argv)) in main()
31 ret = run_tests(argv[0]); in main()
/openssl/util/
H A Dquicserver.c141 int main(int argc, char *argv[]) in main() argument
171 if (argv[argnext][0] != '-') in main()
173 if (strcmp(argv[argnext], "-6") == 0) { in main()
175 } else if(strcmp(argv[argnext], "-trace") == 0) { in main()
178 BIO_printf(bio_err, "Unrecognised argument %s\n", argv[argnext]); in main()
189 hostname = argv[argnext++]; in main()
190 port = argv[argnext++]; in main()
191 certfile = argv[argnext++]; in main()
192 keyfile = argv[argnext++]; in main()
/openssl/doc/designs/ddd/
H A Dddd-03-fd-blocking.c137 int main(int argc, char **argv) in main() argument
147 fprintf(stderr, "usage: %s host port\n", argv[0]); in main()
152 "GET / HTTP/1.0\r\nHost: %s\r\n\r\n", argv[1]); in main()
163 rc = getaddrinfo(argv[1], argv[2], &hints, &result); in main()
187 ssl = new_conn(ctx, fd, argv[1]); in main()
H A Dddd-01-conn-blocking.c138 int main(int argc, char **argv) in main() argument
147 fprintf(stderr, "usage: %s host port\n", argv[0]); in main()
151 snprintf(host_port, sizeof(host_port), "%s:%s", argv[1], argv[2]); in main()
153 "GET / HTTP/1.0\r\nHost: %s\r\n\r\n", argv[1]); in main()
/openssl/demos/encode/
H A Dec_encode.c174 int main(int argc, char **argv) in main() argument
182 if (argc > 1 && argv[1][0]) in main()
183 passphrase_in = argv[1]; in main()
185 if (argc > 2 && argv[2][0]) in main()
186 passphrase_out = argv[2]; in main()
H A Drsa_encode.c171 int main(int argc, char **argv) in main() argument
179 if (argc > 1 && argv[1][0]) in main()
180 passphrase_in = argv[1]; in main()
182 if (argc > 2 && argv[2][0]) in main()
183 passphrase_out = argv[2]; in main()
/openssl/doc/man3/
H A DPKCS12_newpass.pod55 int main(int argc, char **argv)
64 if ((fp = fopen(argv[1], "rb")) == NULL) {
65 fprintf(stderr, "Error opening file %s\n", argv[1]);
75 if (PKCS12_newpass(p12, argv[2], argv[3]) == 0) {
81 if ((fp = fopen(argv[4], "wb")) == NULL) {
82 fprintf(stderr, "Error opening file %s\n", argv[4]);
/openssl/demos/guide/
H A Dtls-server-block.c63 int main(int argc, char *argv[]) in main() argument
72 progname = argv[0]; in main()
76 errx(res, "Usage: %s [host:]port", argv[0]); in main()
77 hostport = argv[1]; in main()

Completed in 37 milliseconds

12345678