Lines Matching refs:larg
2910 long SSL_ctrl(SSL *s, int cmd, long larg, void *parg) in SSL_ctrl() argument
2912 return ossl_ctrl_internal(s, cmd, larg, parg, /*no_quic=*/0); in SSL_ctrl()
2915 long ossl_ctrl_internal(SSL *s, int cmd, long larg, void *parg, int no_quic) in ossl_ctrl_internal() argument
2936 return s->method->ssl_ctrl(s, cmd, larg, parg); in ossl_ctrl_internal()
2946 RECORD_LAYER_set_read_ahead(&sc->rlayer, larg); in ossl_ctrl_internal()
2953 sc->mode |= larg; in ossl_ctrl_internal()
2965 return (sc->mode &= ~larg); in ossl_ctrl_internal()
2969 if (larg < 0) in ossl_ctrl_internal()
2972 sc->max_cert_list = (size_t)larg; in ossl_ctrl_internal()
2975 if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH) in ossl_ctrl_internal()
2981 sc->max_send_fragment = larg; in ossl_ctrl_internal()
2984 sc->rlayer.wrlmethod->set_max_frag_len(sc->rlayer.wrl, larg); in ossl_ctrl_internal()
2987 if ((size_t)larg > sc->max_send_fragment || larg == 0) in ossl_ctrl_internal()
2989 sc->split_send_fragment = larg; in ossl_ctrl_internal()
2992 if (larg < 1 || larg > SSL_MAX_PIPELINES) in ossl_ctrl_internal()
2994 sc->max_pipelines = larg; in ossl_ctrl_internal()
2996 sc->rlayer.rrlmethod->set_max_pipelines(sc->rlayer.rrl, (size_t)larg); in ossl_ctrl_internal()
3004 return (sc->cert->cert_flags |= larg); in ossl_ctrl_internal()
3006 return (sc->cert->cert_flags &= ~larg); in ossl_ctrl_internal()
3025 return ssl_check_allowed_versions(larg, sc->max_proto_version) in ossl_ctrl_internal()
3026 && ssl_set_version_bound(s->defltmeth->version, (int)larg, in ossl_ctrl_internal()
3031 return ssl_check_allowed_versions(sc->min_proto_version, larg) in ossl_ctrl_internal()
3032 && ssl_set_version_bound(s->defltmeth->version, (int)larg, in ossl_ctrl_internal()
3038 return SSL_ctrl((SSL *)sc, cmd, larg, parg); in ossl_ctrl_internal()
3040 return s->method->ssl_ctrl(s, cmd, larg, parg); in ossl_ctrl_internal()
3065 long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) in SSL_CTX_ctrl() argument
3086 ctx->read_ahead = larg; in SSL_CTX_ctrl()
3096 if (larg < 0) in SSL_CTX_ctrl()
3099 ctx->max_cert_list = (size_t)larg; in SSL_CTX_ctrl()
3103 if (larg < 0) in SSL_CTX_ctrl()
3106 ctx->session_cache_size = (size_t)larg; in SSL_CTX_ctrl()
3112 ctx->session_cache_mode = larg; in SSL_CTX_ctrl()
3142 return (ctx->mode |= larg); in SSL_CTX_ctrl()
3144 return (ctx->mode &= ~larg); in SSL_CTX_ctrl()
3146 if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH) in SSL_CTX_ctrl()
3148 ctx->max_send_fragment = larg; in SSL_CTX_ctrl()
3153 if ((size_t)larg > ctx->max_send_fragment || larg == 0) in SSL_CTX_ctrl()
3155 ctx->split_send_fragment = larg; in SSL_CTX_ctrl()
3158 if (larg < 1 || larg > SSL_MAX_PIPELINES) in SSL_CTX_ctrl()
3160 ctx->max_pipelines = larg; in SSL_CTX_ctrl()
3163 return (ctx->cert->cert_flags |= larg); in SSL_CTX_ctrl()
3165 return (ctx->cert->cert_flags &= ~larg); in SSL_CTX_ctrl()
3167 return ssl_check_allowed_versions(larg, ctx->max_proto_version) in SSL_CTX_ctrl()
3168 && ssl_set_version_bound(ctx->method->version, (int)larg, in SSL_CTX_ctrl()
3173 return ssl_check_allowed_versions(ctx->min_proto_version, larg) in SSL_CTX_ctrl()
3174 && ssl_set_version_bound(ctx->method->version, (int)larg, in SSL_CTX_ctrl()
3179 return ctx->method->ssl_ctx_ctrl(ctx, cmd, larg, parg); in SSL_CTX_ctrl()