Lines Matching refs:sc
81 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_SRP_CTX_free() local
84 return ssl_srp_ctx_free_intern(sc); in SSL_SRP_CTX_free()
162 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_SRP_CTX_init() local
165 return ssl_srp_ctx_init_intern(sc); in SSL_SRP_CTX_init()
230 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_srp_server_param_with_username() local
232 if (sc == NULL) in SSL_srp_server_param_with_username()
235 return ssl_srp_server_param_with_username_intern(sc, ad); in SSL_srp_server_param_with_username()
246 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_srp_server_param_pw() local
248 if (sc == NULL) in SSL_set_srp_server_param_pw()
254 sc->srp_ctx.N = BN_dup(GN->N); in SSL_set_srp_server_param_pw()
255 sc->srp_ctx.g = BN_dup(GN->g); in SSL_set_srp_server_param_pw()
256 BN_clear_free(sc->srp_ctx.v); in SSL_set_srp_server_param_pw()
257 sc->srp_ctx.v = NULL; in SSL_set_srp_server_param_pw()
258 BN_clear_free(sc->srp_ctx.s); in SSL_set_srp_server_param_pw()
259 sc->srp_ctx.s = NULL; in SSL_set_srp_server_param_pw()
260 if (!SRP_create_verifier_BN_ex(user, pass, &sc->srp_ctx.s, &sc->srp_ctx.v, in SSL_set_srp_server_param_pw()
261 sc->srp_ctx.N, sc->srp_ctx.g, s->ctx->libctx, in SSL_set_srp_server_param_pw()
271 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_set_srp_server_param() local
273 if (sc == NULL) in SSL_set_srp_server_param()
277 if (sc->srp_ctx.N != NULL) { in SSL_set_srp_server_param()
278 if (!BN_copy(sc->srp_ctx.N, N)) { in SSL_set_srp_server_param()
279 BN_free(sc->srp_ctx.N); in SSL_set_srp_server_param()
280 sc->srp_ctx.N = NULL; in SSL_set_srp_server_param()
283 sc->srp_ctx.N = BN_dup(N); in SSL_set_srp_server_param()
286 if (sc->srp_ctx.g != NULL) { in SSL_set_srp_server_param()
287 if (!BN_copy(sc->srp_ctx.g, g)) { in SSL_set_srp_server_param()
288 BN_free(sc->srp_ctx.g); in SSL_set_srp_server_param()
289 sc->srp_ctx.g = NULL; in SSL_set_srp_server_param()
292 sc->srp_ctx.g = BN_dup(g); in SSL_set_srp_server_param()
295 if (sc->srp_ctx.s != NULL) { in SSL_set_srp_server_param()
296 if (!BN_copy(sc->srp_ctx.s, sa)) { in SSL_set_srp_server_param()
297 BN_free(sc->srp_ctx.s); in SSL_set_srp_server_param()
298 sc->srp_ctx.s = NULL; in SSL_set_srp_server_param()
301 sc->srp_ctx.s = BN_dup(sa); in SSL_set_srp_server_param()
304 if (sc->srp_ctx.v != NULL) { in SSL_set_srp_server_param()
305 if (!BN_copy(sc->srp_ctx.v, v)) { in SSL_set_srp_server_param()
306 BN_free(sc->srp_ctx.v); in SSL_set_srp_server_param()
307 sc->srp_ctx.v = NULL; in SSL_set_srp_server_param()
310 sc->srp_ctx.v = BN_dup(v); in SSL_set_srp_server_param()
313 if (sc->srp_ctx.info) in SSL_set_srp_server_param()
314 OPENSSL_free(sc->srp_ctx.info); in SSL_set_srp_server_param()
315 if ((sc->srp_ctx.info = OPENSSL_strdup(info)) == NULL) in SSL_set_srp_server_param()
319 if (!(sc->srp_ctx.N) || in SSL_set_srp_server_param()
320 !(sc->srp_ctx.g) || !(sc->srp_ctx.s) || !(sc->srp_ctx.v)) in SSL_set_srp_server_param()
465 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SRP_Calc_A_param() local
467 if (sc == NULL) in SRP_Calc_A_param()
470 return ssl_srp_calc_a_param_intern(sc); in SRP_Calc_A_param()
475 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_get_srp_g() local
477 if (sc == NULL) in SSL_get_srp_g()
480 if (sc->srp_ctx.g != NULL) in SSL_get_srp_g()
481 return sc->srp_ctx.g; in SSL_get_srp_g()
487 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_get_srp_N() local
489 if (sc == NULL) in SSL_get_srp_N()
492 if (sc->srp_ctx.N != NULL) in SSL_get_srp_N()
493 return sc->srp_ctx.N; in SSL_get_srp_N()
499 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_get_srp_username() local
501 if (sc == NULL) in SSL_get_srp_username()
504 if (sc->srp_ctx.login != NULL) in SSL_get_srp_username()
505 return sc->srp_ctx.login; in SSL_get_srp_username()
511 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s); in SSL_get_srp_userinfo() local
513 if (sc == NULL) in SSL_get_srp_userinfo()
516 if (sc->srp_ctx.info != NULL) in SSL_get_srp_userinfo()
517 return sc->srp_ctx.info; in SSL_get_srp_userinfo()