Lines Matching refs:parg
3502 long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) in ssl3_ctrl() argument
3530 if (parg == NULL) { in ssl3_ctrl()
3534 pkdh = ssl_dh_to_pkey(parg); in ssl3_ctrl()
3558 if (parg == NULL) { in ssl3_ctrl()
3564 parg); in ssl3_ctrl()
3583 if (parg == NULL) in ssl3_ctrl()
3585 len = strlen((char *)parg); in ssl3_ctrl()
3590 if ((sc->ext.hostname = OPENSSL_strdup((char *)parg)) == NULL) { in ssl3_ctrl()
3600 sc->ext.debug_arg = parg; in ssl3_ctrl()
3614 *(STACK_OF(X509_EXTENSION) **)parg = sc->ext.ocsp.exts; in ssl3_ctrl()
3619 sc->ext.ocsp.exts = parg; in ssl3_ctrl()
3624 *(STACK_OF(OCSP_RESPID) **)parg = sc->ext.ocsp.ids; in ssl3_ctrl()
3629 sc->ext.ocsp.ids = parg; in ssl3_ctrl()
3634 *(unsigned char **)parg = sc->ext.ocsp.resp; in ssl3_ctrl()
3642 sc->ext.ocsp.resp = parg; in ssl3_ctrl()
3649 return ssl_cert_set1_chain(sc, NULL, (STACK_OF(X509) *)parg); in ssl3_ctrl()
3651 return ssl_cert_set0_chain(sc, NULL, (STACK_OF(X509) *)parg); in ssl3_ctrl()
3655 return ssl_cert_add1_chain_cert(sc, NULL, (X509 *)parg); in ssl3_ctrl()
3657 return ssl_cert_add0_chain_cert(sc, NULL, (X509 *)parg); in ssl3_ctrl()
3660 *(STACK_OF(X509) **)parg = sc->cert->key->chain; in ssl3_ctrl()
3665 return ssl_cert_select_current(sc->cert, (X509 *)parg); in ssl3_ctrl()
3697 if (parg) { in ssl3_ctrl()
3699 int *cptr = parg; in ssl3_ctrl()
3716 &sc->ext.supportedgroups_len, parg, larg); in ssl3_ctrl()
3720 &sc->ext.supportedgroups_len, parg); in ssl3_ctrl()
3742 return tls1_set_sigalgs(sc->cert, parg, larg, 0); in ssl3_ctrl()
3745 return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 0); in ssl3_ctrl()
3748 return tls1_set_sigalgs(sc->cert, parg, larg, 1); in ssl3_ctrl()
3751 return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 1); in ssl3_ctrl()
3755 const unsigned char **pctype = parg; in ssl3_ctrl()
3766 return ssl3_set_req_cert_type(sc->cert, parg, larg); in ssl3_ctrl()
3772 return ssl_cert_set_cert_store(sc->cert, parg, 0, larg); in ssl3_ctrl()
3775 return ssl_cert_set_cert_store(sc->cert, parg, 1, larg); in ssl3_ctrl()
3778 return ssl_cert_get_cert_store(sc->cert, parg, 0); in ssl3_ctrl()
3781 return ssl_cert_get_cert_store(sc->cert, parg, 1); in ssl3_ctrl()
3786 *(int *)parg = sc->s3.tmp.peer_sigalg->hash; in ssl3_ctrl()
3792 *(int *)parg = sc->s3.tmp.sigalg->hash; in ssl3_ctrl()
3800 *(EVP_PKEY **)parg = sc->s3.peer_tmp; in ssl3_ctrl()
3809 *(EVP_PKEY **)parg = sc->s3.tmp.pkey; in ssl3_ctrl()
3815 const unsigned char **pformat = parg; in ssl3_ctrl()
3825 if (parg != NULL) { in ssl3_ctrl()
3826 *(uint16_t **)parg = (uint16_t *)sc->ext.peer_supportedgroups; in ssl3_ctrl()
3832 sc->msg_callback_arg = parg; in ssl3_ctrl()
3876 long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) in ssl3_ctx_ctrl() argument
3883 if (parg == NULL) { in ssl3_ctx_ctrl()
3887 pkdh = ssl_dh_to_pkey(parg); in ssl3_ctx_ctrl()
3910 if (parg == NULL) { in ssl3_ctx_ctrl()
3916 parg); in ssl3_ctx_ctrl()
3920 ctx->ext.servername_arg = parg; in ssl3_ctx_ctrl()
3925 unsigned char *keys = parg; in ssl3_ctx_ctrl()
3967 ctx->ext.status_arg = parg; in ssl3_ctx_ctrl()
3971 *(void**)parg = ctx->ext.status_arg; in ssl3_ctx_ctrl()
3975 *(int (**)(SSL*, void*))parg = ctx->ext.status_cb; in ssl3_ctx_ctrl()
3983 if (parg == NULL) in ssl3_ctx_ctrl()
3985 if (strlen((const char *)parg) > 255 || strlen((const char *)parg) < 1) { in ssl3_ctx_ctrl()
3989 if ((ctx->srp_ctx.login = OPENSSL_strdup((char *)parg)) == NULL) { in ssl3_ctx_ctrl()
3999 if ((ctx->srp_ctx.info = OPENSSL_strdup((char *)parg)) == NULL) { in ssl3_ctx_ctrl()
4006 ctx->srp_ctx.SRP_cb_arg = parg; in ssl3_ctx_ctrl()
4017 parg, larg); in ssl3_ctx_ctrl()
4022 parg); in ssl3_ctx_ctrl()
4025 return tls1_set_sigalgs(ctx->cert, parg, larg, 0); in ssl3_ctx_ctrl()
4028 return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 0); in ssl3_ctx_ctrl()
4031 return tls1_set_sigalgs(ctx->cert, parg, larg, 1); in ssl3_ctx_ctrl()
4034 return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 1); in ssl3_ctx_ctrl()
4037 return ssl3_set_req_cert_type(ctx->cert, parg, larg); in ssl3_ctx_ctrl()
4043 return ssl_cert_set_cert_store(ctx->cert, parg, 0, larg); in ssl3_ctx_ctrl()
4046 return ssl_cert_set_cert_store(ctx->cert, parg, 1, larg); in ssl3_ctx_ctrl()
4049 return ssl_cert_get_cert_store(ctx->cert, parg, 0); in ssl3_ctx_ctrl()
4052 return ssl_cert_get_cert_store(ctx->cert, parg, 1); in ssl3_ctx_ctrl()
4062 if (!sk_X509_push(ctx->extra_certs, (X509 *)parg)) { in ssl3_ctx_ctrl()
4070 *(STACK_OF(X509) **)parg = ctx->cert->key->chain; in ssl3_ctx_ctrl()
4072 *(STACK_OF(X509) **)parg = ctx->extra_certs; in ssl3_ctx_ctrl()
4082 return ssl_cert_set1_chain(NULL, ctx, (STACK_OF(X509) *)parg); in ssl3_ctx_ctrl()
4084 return ssl_cert_set0_chain(NULL, ctx, (STACK_OF(X509) *)parg); in ssl3_ctx_ctrl()
4088 return ssl_cert_add1_chain_cert(NULL, ctx, (X509 *)parg); in ssl3_ctx_ctrl()
4090 return ssl_cert_add0_chain_cert(NULL, ctx, (X509 *)parg); in ssl3_ctx_ctrl()
4093 *(STACK_OF(X509) **)parg = ctx->cert->key->chain; in ssl3_ctx_ctrl()
4097 return ssl_cert_select_current(ctx->cert, (X509 *)parg); in ssl3_ctx_ctrl()