/openssl/test/ |
H A D | provider_status_test.c | 48 static int self_test_events(const OSSL_PARAM params[], void *arg, in self_test_events() argument 51 struct self_test_arg *args = arg; in self_test_events() 91 static int self_test_on_demand_fail(const OSSL_PARAM params[], void *arg) in self_test_on_demand_fail() argument 93 return self_test_events(params, arg, "On Demand Failure", 1); in self_test_on_demand_fail() 96 static int self_test_on_demand(const OSSL_PARAM params[], void *arg) in self_test_on_demand() argument 98 return self_test_events(params, arg, "On Demand", 0); in self_test_on_demand() 101 static int self_test_on_load(const OSSL_PARAM params[], void *arg) in self_test_on_load() argument 103 return self_test_events(params, arg, "On Loading", 0); in self_test_on_load()
|
/openssl/include/openssl/ |
H A D | core.h | 169 typedef void (*OSSL_thread_stop_handler_fn)(void *arg); 216 typedef int (OSSL_CALLBACK)(const OSSL_PARAM params[], void *arg); 218 OSSL_PARAM out_params[], void *arg); 227 const OSSL_PARAM params[], void *arg);
|
H A D | http.h | 63 typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail); 67 OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, 80 OSSL_HTTP_bio_cb_t bio_update_fn, void *arg, 89 OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
/openssl/crypto/ |
H A D | sparse_array.c | 66 void (*leaf)(ossl_uintmax_t, void *, void *), void *arg) in sa_doall() argument 93 (*leaf)(idx, p[n], arg); in sa_doall() 105 static void sa_free_leaf(ossl_uintmax_t n, void *p, void *arg) in sa_free_leaf() argument 129 static void trampoline(ossl_uintmax_t n, void *l, void *arg) in trampoline() argument 131 ((const struct trampoline_st *)arg)->func(n, l); in trampoline() 145 void *arg) in ossl_sa_doall_arg() argument 148 sa_doall(sa, NULL, leaf, arg); in ossl_sa_doall_arg()
|
/openssl/crypto/encode_decode/ |
H A D | encoder_pkey.c | 85 static void collect_encoder(OSSL_ENCODER *encoder, void *arg) in collect_encoder() argument 87 struct collected_encoder_st *data = arg; in collect_encoder() 133 static void collect_name(const char *name, void *arg) in collect_name() argument 135 struct collected_names_st *data = arg; in collect_name() 163 static int encoder_import_cb(const OSSL_PARAM params[], void *arg) in encoder_import_cb() argument 165 struct construct_data_st *construct_data = arg; in encoder_import_cb() 177 encoder_construct_pkey(OSSL_ENCODER_INSTANCE *encoder_inst, void *arg) in encoder_construct_pkey() argument 179 struct construct_data_st *data = arg; in encoder_construct_pkey() 203 static void encoder_destruct_pkey(void *arg) in encoder_destruct_pkey() argument 205 struct construct_data_st *data = arg; in encoder_destruct_pkey()
|
/openssl/doc/designs/ddd/ |
H A D | ddd-06-mem-uv.c | 10 typedef void (app_connect_cb)(APP_CONN *conn, int status, void *arg); 11 typedef void (app_write_cb)(APP_CONN *conn, int status, void *arg); 12 typedef void (app_read_cb)(APP_CONN *conn, void *buf, size_t buf_len, void *arg); 106 app_connect_cb *cb, void *arg) in new_conn() argument 120 conn->app_connect_arg = arg; in new_conn() 137 int app_read_start(APP_CONN *conn, app_read_cb *cb, void *arg) in app_read_start() argument 140 conn->app_read_arg = arg; in app_read_start() 151 write_deferred(conn, buf, buf_len, cb, arg); in app_write() 499 op->cb_arg = arg; in write_deferred() 539 static void post_write_get(APP_CONN *conn, int status, void *arg) in post_write_get() argument [all …]
|
/openssl/crypto/evp/ |
H A D | e_rc5.c | 29 static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 43 static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in rc5_ctrl() argument 55 switch (arg) { in rc5_ctrl() 59 data(c)->rounds = arg; in rc5_ctrl()
|
H A D | e_rc2.c | 33 static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 170 static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in rc2_ctrl() argument 182 if (arg > 0) { in rc2_ctrl() 183 data(c)->key_bits = arg; in rc2_ctrl()
|
/openssl/crypto/sm3/asm/ |
H A D | sm3-armv8.pl | 235 my ($mnemonic,$arg)=@_; 237 $arg=~ m/[qv](\d+)[^,]*,\s*[qv](\d+)[^,]*,\s*[qv](\d+)/o 241 $mnemonic,$arg; 245 my ($mnemonic,$arg)=@_; 247 $arg=~ m/[qv](\d+)[^,]*,\s*[qv](\d+)[^,]*,\s*[qv](\d+)[^,]*,\s*[qv](\d+)/o 251 $mnemonic,$arg; 255 my ($mnemonic,$arg)=@_; 257 $arg=~ m/[qv](\d+)[^,]*,\s*[qv](\d+)[^,]*,\s*[qv](\d+)[^,]*\[([0-3])\]/o 261 $mnemonic,$arg;
|
/openssl/apps/lib/ |
H A D | tlssrp_depr.c | 65 static int ssl_srp_verify_param_cb(SSL *s, void *arg) in ssl_srp_verify_param_cb() argument 67 SRP_ARG *srp_arg = (SRP_ARG *)arg; in ssl_srp_verify_param_cb() 103 static char *ssl_give_srp_client_pwd_cb(SSL *s, void *arg) in ssl_give_srp_client_pwd_cb() argument 105 SRP_ARG *srp_arg = (SRP_ARG *)arg; in ssl_give_srp_client_pwd_cb() 140 static char *dummy_srp(SSL *ssl, void *arg) in dummy_srp() argument 158 static int ssl_srp_server_param_cb(SSL *s, int *ad, void *arg) in ssl_srp_server_param_cb() argument 160 srpsrvparm *p = (srpsrvparm *) arg; in ssl_srp_server_param_cb()
|
H A D | opt.c | 41 static char *arg; variable 534 (void)opt_int(arg, &result); in opt_int_arg() 855 arg = NULL; in opt_begin() 874 arg = NULL; in opt_next() 895 *arg++ = '\0'; in opt_next() 904 if (arg) { in opt_next() 913 if (arg == NULL) { in opt_next() 919 arg = argv[opt_index++]; in opt_next() 933 if (opt_isdir(arg) > 0) in opt_next() 979 if (opt_format(arg, in opt_next() [all …]
|
H A D | apps.c | 88 arg->argc = 0; in chopup_args() 91 arg->argv = app_malloc(sizeof(*arg->argv) * arg->size, "argv space"); in chopup_args() 102 if (arg->argc >= arg->size) { in chopup_args() 106 tmp = OPENSSL_realloc(arg->argv, sizeof(*arg->argv) * arg->size); in chopup_args() 114 arg->argv[arg->argc++] = p; in chopup_args() 128 arg->argv[arg->argc] = NULL; in chopup_args() 319 (int)(tmp - arg + 1), arg); in app_get_pass() 1213 if (!arg) in set_multi_opts() 1231 c = arg[0]; in set_table_opts() 1234 arg++; in set_table_opts() [all …]
|
/openssl/crypto/objects/ |
H A D | o_names.c | 280 void (*fn) (const OBJ_NAME *, void *arg); 281 void *arg; member 287 d->fn(name, d->arg); in do_all_fn() 292 void OBJ_NAME_do_all(int type, void (*fn) (const OBJ_NAME *, void *arg), in OBJ_NAME_do_all() argument 293 void *arg) in OBJ_NAME_do_all() 299 d.arg = arg; in OBJ_NAME_do_all() 329 void (*fn) (const OBJ_NAME *, void *arg), in OBJ_NAME_do_all_sorted() argument 330 void *arg) in OBJ_NAME_do_all_sorted() 346 fn(d.names[n], arg); in OBJ_NAME_do_all_sorted()
|
/openssl/crypto/engine/ |
H A D | eng_ctrl.c | 232 int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, in ENGINE_ctrl_cmd_string() argument 279 if (arg != NULL) { in ENGINE_ctrl_cmd_string() 289 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string() 294 if (arg == NULL) { in ENGINE_ctrl_cmd_string() 301 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string() 315 l = strtol(arg, &ptr, 10); in ENGINE_ctrl_cmd_string() 316 if ((arg == ptr) || (*ptr != '\0')) { in ENGINE_ctrl_cmd_string()
|
/openssl/apps/ |
H A D | CA.pl.in | 62 my $arg = shift; 63 if ( $arg !~ m/-extra-([a-z0-9]+)/ ) { 64 push @result, $arg; 67 $arg =~ s/-extra-//; 68 die("Unknown \"-${arg}-extra\" option, exiting") 69 unless scalar grep { $arg eq $_ } @OPENSSL_CMDS; 70 $EXTRA{$arg} .= " " . shift;
|
H A D | engine.c | 250 const char *cmd, *arg; in util_do_cmds() local 254 if ((arg = strstr(cmd, ":")) == NULL) { in util_do_cmds() 258 if ((int)(arg - cmd) > 254) { in util_do_cmds() 262 memcpy(buf, cmd, (int)(arg - cmd)); in util_do_cmds() 263 buf[arg - cmd] = '\0'; in util_do_cmds() 264 arg++; /* Move past the ":" */ in util_do_cmds() 266 if (!ENGINE_ctrl_cmd_string(e, buf, arg, 0)) in util_do_cmds() 284 static void util_store_cap(const OSSL_STORE_LOADER *loader, void *arg) in util_store_cap() argument 286 struct util_store_cap_data *ctx = arg; in util_store_cap()
|
/openssl/engines/ |
H A D | e_dasync.c | 134 static int dasync_aes128_cbc_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, 143 int arg, void *ptr); 608 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper() 613 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper() 618 pipe_ctx->numpipes = arg; in dasync_cipher_ctrl_helper() 627 (ctx, type, arg, ptr); in dasync_cipher_ctrl_helper() 636 if (!aeadcapable || arg != EVP_AEAD_TLS1_AAD_LEN) in dasync_cipher_ctrl_helper() 646 len = p[arg - 2] << 8 | p[arg - 1]; in dasync_cipher_ctrl_helper() 649 if ((p[arg - 4] << 8 | p[arg - 3]) >= TLS1_1_VERSION) { in dasync_cipher_ctrl_helper() 758 static int dasync_aes128_cbc_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, in dasync_aes128_cbc_ctrl() argument [all …]
|
H A D | e_ossltest.c | 264 static int ossltest_aes128_gcm_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, 275 int arg, void *ptr); 755 static int ossltest_aes128_gcm_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, in ossltest_aes128_gcm_ctrl() argument 759 int ret = EVP_CIPHER_meth_get_ctrl(EVP_aes_128_gcm())(ctx, type, arg, ptr); in ossltest_aes128_gcm_ctrl() 856 int arg, void *ptr) in ossltest_aes128_cbc_hmac_sha1_ctrl() argument 869 if (arg != EVP_AEAD_TLS1_AAD_LEN) in ossltest_aes128_cbc_hmac_sha1_ctrl() 872 len = p[arg - 2] << 8 | p[arg - 1]; in ossltest_aes128_cbc_hmac_sha1_ctrl() 873 key->tls_ver = p[arg - 4] << 8 | p[arg - 3]; in ossltest_aes128_cbc_hmac_sha1_ctrl() 881 p[arg - 2] = len >> 8; in ossltest_aes128_cbc_hmac_sha1_ctrl() 882 p[arg - 1] = len; in ossltest_aes128_cbc_hmac_sha1_ctrl() [all …]
|
/openssl/crypto/perlasm/ |
H A D | arm-xlate.pl | 180 my $arg=expand_line($line); 183 $line = &$opcode($arg); 186 $line.= "\t$arg" if ($arg ne "");
|
/openssl/ssl/ |
H A D | ssl_mcnf.c | 70 char *cmdstr, *arg; in ssl_do_config() local 72 conf_ssl_get_cmd(cmds, i, &cmdstr, &arg); in ssl_do_config() 73 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config() 78 "section=%s, cmd=%s, arg=%s", name, cmdstr, arg); in ssl_do_config()
|
/openssl/test/helpers/ |
H A D | handshake_srp.c | 21 static char *client_srp_cb(SSL *s, void *arg) in client_srp_cb() argument 23 CTX_DATA *ctx_data = (CTX_DATA*)(arg); in client_srp_cb() 27 static int server_srp_cb(SSL *s, int *ad, void *arg) in server_srp_cb() argument 29 CTX_DATA *ctx_data = (CTX_DATA*)(arg); in server_srp_cb()
|
H A D | handshake.c | 114 SSL_CTX *new_ctx = (SSL_CTX*)arg; in select_server_ctx() 178 SSL_CTX *new_ctx = arg; in client_hello_select_server_ctx() 213 return select_server_ctx(s, arg, 1); in servername_ignore_cb() 218 return select_server_ctx(s, arg, 0); in servername_reject_cb() 270 static int server_ocsp_cb(SSL *s, void *arg) in server_ocsp_cb() argument 280 *resp = *(unsigned char *)arg; in server_ocsp_cb() 395 void *arg) in client_npn_cb() argument 397 CTX_DATA *ctx_data = (CTX_DATA*)(arg); in client_npn_cb() 411 CTX_DATA *ctx_data = (CTX_DATA*)(arg); in server_npn_cb() 428 CTX_DATA *ctx_data = (CTX_DATA*)(arg); in server_alpn_cb() [all …]
|
/openssl/doc/man3/ |
H A D | SSL_CTX_set_record_padding_callback.pod | 18 …X_set_record_padding_callback(SSL_CTX *ctx, size_t (*cb)(SSL *s, int type, size_t len, void *arg)); 19 …int SSL_set_record_padding_callback(SSL *ssl, size_t (*cb)(SSL *s, int type, size_t len, void *arg… 21 void SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg); 24 void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg); 39 assign a value B<arg> that is passed to the callback when it is invoked. The value 43 retrieve the B<arg> value that is passed to the callback. 53 The B<arg> parameter is the value set via SSL_CTX_set_record_padding_callback_arg() 59 functions return the B<arg> value assigned in the corresponding set functions.
|
H A D | BIO_get_ex_new_index.pod | 39 int TYPE_set_ex_data(TYPE *d, int idx, void *arg); 43 #define TYPE_set_app_data(TYPE *d, void *arg) 52 int DH_set_ex_data(DH *type, int idx, void *arg); 56 int DSA_set_ex_data(DSA *type, int idx, void *arg); 60 int EC_KEY_set_ex_data(EC_KEY *type, int idx, void *arg); 64 int RSA_set_ex_data(RSA *type, int idx, void *arg); 66 int RSA_set_app_data(RSA *type, void *arg); 70 int ENGINE_set_ex_data(ENGINE *type, int idx, void *arg);
|
/openssl/apps/include/ |
H A D | opt.h | 380 int opt_int(const char *arg, int *result); 383 int opt_long(const char *arg, long *result); 384 int opt_ulong(const char *arg, unsigned long *result); 385 int opt_intmax(const char *arg, ossl_intmax_t *result); 386 int opt_uintmax(const char *arg, ossl_uintmax_t *result); 393 int opt_pair(const char *arg, const OPT_PAIR * pairs, int *result);
|