OpenCoverage

tls_srp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/ssl/tls_srp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4int SSL_CTX_SRP_CTX_free(struct ssl_ctx_st *ctx)-
5{-
6 if (ctx ==
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8017 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8017
7 ((void *)0)
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8017 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8017
8 )-
9 return
never executed: return 0;
0;
never executed: return 0;
0
10 CRYPTO_free(ctx->srp_ctx.login, __FILE__, 26);-
11 CRYPTO_free(ctx->srp_ctx.info, __FILE__, 27);-
12 BN_free(ctx->srp_ctx.N);-
13 BN_free(ctx->srp_ctx.g);-
14 BN_free(ctx->srp_ctx.s);-
15 BN_free(ctx->srp_ctx.B);-
16 BN_free(ctx->srp_ctx.A);-
17 BN_free(ctx->srp_ctx.a);-
18 BN_free(ctx->srp_ctx.b);-
19 BN_free(ctx->srp_ctx.v);-
20 memset(&ctx->srp_ctx, 0, sizeof(ctx->srp_ctx));-
21 ctx->srp_ctx.strength = 1024;-
22 return
executed 8017 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
1;
executed 8017 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
8017
23}-
24-
25int SSL_SRP_CTX_free(struct ssl_st *s)-
26{-
27 if (s ==
s == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
28 ((void *)0)
s == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
29 )-
30 return
never executed: return 0;
0;
never executed: return 0;
0
31 CRYPTO_free(s->srp_ctx.login, __FILE__, 45);-
32 CRYPTO_free(s->srp_ctx.info, __FILE__, 46);-
33 BN_free(s->srp_ctx.N);-
34 BN_free(s->srp_ctx.g);-
35 BN_free(s->srp_ctx.s);-
36 BN_free(s->srp_ctx.B);-
37 BN_free(s->srp_ctx.A);-
38 BN_free(s->srp_ctx.a);-
39 BN_free(s->srp_ctx.b);-
40 BN_free(s->srp_ctx.v);-
41 memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));-
42 s->srp_ctx.strength = 1024;-
43 return
executed 8322 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
1;
executed 8322 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
8322
44}-
45-
46int SSL_SRP_CTX_init(struct ssl_st *s)-
47{-
48 SSL_CTX *ctx;-
49-
50 if ((
(s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
s ==
(s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
51 ((void *)0)
(s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
52 )
(s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
|| ((
((ctx = s->ctx... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx = s->ctx) ==
((ctx = s->ctx... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
53 ((void *)0)
((ctx = s->ctx... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
54 )
((ctx = s->ctx... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
)
0-8322
55 return
never executed: return 0;
0;
never executed: return 0;
0
56-
57 memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));-
58-
59 s->srp_ctx.SRP_cb_arg = ctx->srp_ctx.SRP_cb_arg;-
60-
61 s->srp_ctx.TLS_ext_srp_username_callback =-
62 ctx->srp_ctx.TLS_ext_srp_username_callback;-
63-
64 s->srp_ctx.SRP_verify_param_callback =-
65 ctx->srp_ctx.SRP_verify_param_callback;-
66-
67 s->srp_ctx.SRP_give_srp_client_pwd_callback =-
68 ctx->srp_ctx.SRP_give_srp_client_pwd_callback;-
69-
70 s->srp_ctx.strength = ctx->srp_ctx.strength;-
71-
72 if (((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.N !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
73 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
74 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
75 ((
((s->srp_ctx.N... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) ==
((s->srp_ctx.N... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
76 ((void *)0)
((s->srp_ctx.N... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
77 )
((s->srp_ctx.N... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
78 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.g !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
79 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
80 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
81 ((
((s->srp_ctx.g... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.g = BN_dup(ctx->srp_ctx.g)) ==
((s->srp_ctx.g... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
82 ((void *)0)
((s->srp_ctx.g... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
83 )
((s->srp_ctx.g... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
84 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.s !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
85 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
86 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
87 ((
((s->srp_ctx.s... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.s = BN_dup(ctx->srp_ctx.s)) ==
((s->srp_ctx.s... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
88 ((void *)0)
((s->srp_ctx.s... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
89 )
((s->srp_ctx.s... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
90 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.B !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
91 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
92 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
93 ((
((s->srp_ctx.B... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.B = BN_dup(ctx->srp_ctx.B)) ==
((s->srp_ctx.B... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
94 ((void *)0)
((s->srp_ctx.B... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
95 )
((s->srp_ctx.B... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
96 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.A !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
97 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
98 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
99 ((
((s->srp_ctx.A... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.A = BN_dup(ctx->srp_ctx.A)) ==
((s->srp_ctx.A... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
100 ((void *)0)
((s->srp_ctx.A... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
101 )
((s->srp_ctx.A... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
102 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.a !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
103 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
104 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
105 ((
((s->srp_ctx.a... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.a = BN_dup(ctx->srp_ctx.a)) ==
((s->srp_ctx.a... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
106 ((void *)0)
((s->srp_ctx.a... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
107 )
((s->srp_ctx.a... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
108 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.v !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
109 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
110 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
111 ((
((s->srp_ctx.v... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.v = BN_dup(ctx->srp_ctx.v)) ==
((s->srp_ctx.v... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
112 ((void *)0)
((s->srp_ctx.v... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
113 )
((s->srp_ctx.v... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0
114 ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.b !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
115 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8322
116 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 8322 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
0-8322
117 ((
((s->srp_ctx.b... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
s->srp_ctx.b = BN_dup(ctx->srp_ctx.b)) ==
((s->srp_ctx.b... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
118 ((void *)0)
((s->srp_ctx.b... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
119 )
((s->srp_ctx.b... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
120 ERR_put_error(20,(313),(3),__FILE__,98);-
121 goto
never executed: goto err;
err;
never executed: goto err;
0
122 }-
123 if ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8311 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.login !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8311 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
11-8311
124 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8311 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
11-8311
125 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8311 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
11-8311
126 ((
((s->srp_ctx.l... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.login = CRYPTO_strdup(ctx->srp_ctx.login, __FILE__, 102)) ==
((s->srp_ctx.l... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-11
127 ((void *)0)
((s->srp_ctx.l... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-11
128 )
((s->srp_ctx.l... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-11
129 ERR_put_error(20,(313),((4|64)),__FILE__,103);-
130 goto
never executed: goto err;
err;
never executed: goto err;
0
131 }-
132 if ((
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8316 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
ctx->srp_ctx.info !=
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8316 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
6-8316
133 ((void *)0)
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8316 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
6-8316
134 )
(ctx->srp_ctx.... ((void *)0) )Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 8316 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
&&
6-8316
135 ((
((s->srp_ctx.i... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.info = CRYPTO_strdup(ctx->srp_ctx.info, __FILE__, 107)) ==
((s->srp_ctx.i... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
136 ((void *)0)
((s->srp_ctx.i... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
137 )
((s->srp_ctx.i... ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-6
138 ERR_put_error(20,(313),((4|64)),__FILE__,108);-
139 goto
never executed: goto err;
err;
never executed: goto err;
0
140 }-
141 s->srp_ctx.srp_Mask = ctx->srp_ctx.srp_Mask;-
142-
143 return
executed 8322 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
1;
executed 8322 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
8322
144 err:-
145 CRYPTO_free(s->srp_ctx.login, __FILE__, 115);-
146 CRYPTO_free(s->srp_ctx.info, __FILE__, 116);-
147 BN_free(s->srp_ctx.N);-
148 BN_free(s->srp_ctx.g);-
149 BN_free(s->srp_ctx.s);-
150 BN_free(s->srp_ctx.B);-
151 BN_free(s->srp_ctx.A);-
152 BN_free(s->srp_ctx.a);-
153 BN_free(s->srp_ctx.b);-
154 BN_free(s->srp_ctx.v);-
155 memset(&s->srp_ctx, 0, sizeof(s->srp_ctx));-
156 return
never executed: return 0;
0;
never executed: return 0;
0
157}-
158-
159int SSL_CTX_SRP_CTX_init(struct ssl_ctx_st *ctx)-
160{-
161 if (ctx ==
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8017 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8017
162 ((void *)0)
ctx == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 8017 times by 2 tests
Evaluated by:
  • libssl.so.1.1
  • tls13encryptiontest
0-8017
163 )-
164 return
never executed: return 0;
0;
never executed: return 0;
0
165-
166 memset(&ctx->srp_ctx, 0, sizeof(ctx->srp_ctx));-
167 ctx->srp_ctx.strength = 1024;-
168-
169 return
executed 8017 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
1;
executed 8017 times by 2 tests: return 1;
Executed by:
  • libssl.so.1.1
  • tls13encryptiontest
8017
170}-
171-
172-
173int SSL_srp_server_param_with_username(SSL *s, int *ad)-
174{-
175 unsigned char b[48];-
176 int al;-
177-
178 *ad = 115;-
179 if ((
(s->srp_ctx.TL... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
s->srp_ctx.TLS_ext_srp_username_callback !=
(s->srp_ctx.TL... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
180 ((void *)0)
(s->srp_ctx.TL... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
181 )
(s->srp_ctx.TL... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
&&
0-10
182 ((
((al = s->srp_...cb_arg)) != 0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
al =
((al = s->srp_...cb_arg)) != 0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
183 s->srp_ctx.TLS_ext_srp_username_callback(s, ad,
((al = s->srp_...cb_arg)) != 0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
184 s->srp_ctx.SRP_cb_arg)) !=
((al = s->srp_...cb_arg)) != 0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
185 0)
((al = s->srp_...cb_arg)) != 0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
186 return
never executed: return al;
al;
never executed: return al;
0
187-
188 *ad = 80;-
189 if ((
(s->srp_ctx.N == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.N ==
(s->srp_ctx.N == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
190 ((void *)0)
(s->srp_ctx.N == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
191 )
(s->srp_ctx.N == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
||
0-10
192 (
(s->srp_ctx.g == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.g ==
(s->srp_ctx.g == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
193 ((void *)0)
(s->srp_ctx.g == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
194 )
(s->srp_ctx.g == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
||
0-10
195 (
(s->srp_ctx.s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.s ==
(s->srp_ctx.s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
196 ((void *)0)
(s->srp_ctx.s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
197 )
(s->srp_ctx.s == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
|| (
(s->srp_ctx.v == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.v ==
(s->srp_ctx.v == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
198 ((void *)0)
(s->srp_ctx.v == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
199 )
(s->srp_ctx.v == ((void *)0) )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
200 return
never executed: return 2;
2;
never executed: return 2;
0
201-
202 if (RAND_priv_bytes(b, sizeof(b)) <= 0
RAND_priv_byte...izeof(b)) <= 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
203 return
never executed: return 2;
2;
never executed: return 2;
0
204 s->srp_ctx.b = BN_bin2bn(b, sizeof(b), -
205 ((void *)0)-
206 );-
207 OPENSSL_cleanse(b, sizeof(b));-
208-
209-
210-
211 return
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
((
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
s->srp_ctx.B =
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
212 SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g,
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
213 s->srp_ctx.v)) !=
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
214
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
215 ((void *)0)
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
216 )
((s->srp_ctx.B... ((void *)0) )Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
? 0 : 2;
executed 10 times by 1 test: return ((s->srp_ctx.B = SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, s->srp_ctx.v)) != ((void *)0) ) ? 0 : 2;
Executed by:
  • libssl.so.1.1
0-10
217}-
218-
219-
220-
221-
222-
223int SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,-
224 const char *grp)-
225{-
226 SRP_gN *GN = SRP_get_default_gN(grp);-
227 if (GN ==
GN == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-4
228 ((void *)0)
GN == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-4
229 )-
230 return
never executed: return -1;
-1;
never executed: return -1;
0
231 s->srp_ctx.N = BN_dup(GN->N);-
232 s->srp_ctx.g = BN_dup(GN->g);-
233 BN_clear_free(s->srp_ctx.v);-
234 s->srp_ctx.v = -
235 ((void *)0)-
236 ;-
237 BN_clear_free(s->srp_ctx.s);-
238 s->srp_ctx.s = -
239 ((void *)0)-
240 ;-
241 if (!SRP_create_verifier_BN
!SRP_create_ve... GN->N, GN->g)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-4
242 (user, pass, &s->srp_ctx.s, &s->srp_ctx.v, GN->N, GN->g)
!SRP_create_ve... GN->N, GN->g)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-4
243 return
never executed: return -1;
-1;
never executed: return -1;
0
244-
245 return
executed 4 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
1;
executed 4 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
4
246}-
247-
248int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,-
249 BIGNUM *sa, BIGNUM *v, char *info)-
250{-
251 if (N !=
N != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
252 ((void *)0)
N != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
253 ) {-
254 if (s->srp_ctx.N !=
s->srp_ctx.N != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
255 ((void *)0)
s->srp_ctx.N != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
256 ) {-
257 if (!BN_copy(s->srp_ctx.N, N)
!BN_copy(s->srp_ctx.N, N)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
258 BN_free(s->srp_ctx.N);-
259 s->srp_ctx.N = -
260 ((void *)0)-
261 ;-
262 }
never executed: end of block
0
263 }
never executed: end of block
else
0
264 s->srp_ctx.N = BN_dup(N);
executed 6 times by 1 test: s->srp_ctx.N = BN_dup(N);
Executed by:
  • libssl.so.1.1
6
265 }-
266 if (g !=
g != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
267 ((void *)0)
g != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
268 ) {-
269 if (s->srp_ctx.g !=
s->srp_ctx.g != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
270 ((void *)0)
s->srp_ctx.g != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
271 ) {-
272 if (!BN_copy(s->srp_ctx.g, g)
!BN_copy(s->srp_ctx.g, g)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
273 BN_free(s->srp_ctx.g);-
274 s->srp_ctx.g = -
275 ((void *)0)-
276 ;-
277 }
never executed: end of block
0
278 }
never executed: end of block
else
0
279 s->srp_ctx.g = BN_dup(g);
executed 6 times by 1 test: s->srp_ctx.g = BN_dup(g);
Executed by:
  • libssl.so.1.1
6
280 }-
281 if (sa !=
sa != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
282 ((void *)0)
sa != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
283 ) {-
284 if (s->srp_ctx.s !=
s->srp_ctx.s != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
285 ((void *)0)
s->srp_ctx.s != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
286 ) {-
287 if (!BN_copy(s->srp_ctx.s, sa)
!BN_copy(s->srp_ctx.s, sa)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
288 BN_free(s->srp_ctx.s);-
289 s->srp_ctx.s = -
290 ((void *)0)-
291 ;-
292 }
never executed: end of block
0
293 }
never executed: end of block
else
0
294 s->srp_ctx.s = BN_dup(sa);
executed 6 times by 1 test: s->srp_ctx.s = BN_dup(sa);
Executed by:
  • libssl.so.1.1
6
295 }-
296 if (v !=
v != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
297 ((void *)0)
v != ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-6
298 ) {-
299 if (s->srp_ctx.v !=
s->srp_ctx.v != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
300 ((void *)0)
s->srp_ctx.v != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-6
301 ) {-
302 if (!BN_copy(s->srp_ctx.v, v)
!BN_copy(s->srp_ctx.v, v)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
303 BN_free(s->srp_ctx.v);-
304 s->srp_ctx.v = -
305 ((void *)0)-
306 ;-
307 }
never executed: end of block
0
308 }
never executed: end of block
else
0
309 s->srp_ctx.v = BN_dup(v);
executed 6 times by 1 test: s->srp_ctx.v = BN_dup(v);
Executed by:
  • libssl.so.1.1
6
310 }-
311 if (info !=
info != ((void *)0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 2 times by 1 test
Evaluated by:
  • libssl.so.1.1
2-4
312 ((void *)0)
info != ((void *)0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEevaluated 2 times by 1 test
Evaluated by:
  • libssl.so.1.1
2-4
313 ) {-
314 if (s->srp_ctx.info
s->srp_ctx.infoDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-4
315 CRYPTO_free(s->srp_ctx.info, __FILE__, 237);
never executed: CRYPTO_free(s->srp_ctx.info, __FILE__, 237);
0
316 if ((
(s->srp_ctx.in...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
s->srp_ctx.info = CRYPTO_strdup(info, __FILE__, 238)) ==
(s->srp_ctx.in...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-4
317 ((void *)0)
(s->srp_ctx.in...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-4
318 )-
319 return
never executed: return -1;
-1;
never executed: return -1;
0
320 }
executed 4 times by 1 test: end of block
Executed by:
  • libssl.so.1.1
4
321-
322 if (!(s->srp_ctx.N)
!(s->srp_ctx.N)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
||
0-6
323 !(s->srp_ctx.g)
!(s->srp_ctx.g)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
|| !(s->srp_ctx.s)
!(s->srp_ctx.s)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
|| !(s->srp_ctx.v)
!(s->srp_ctx.v)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-6
324 return
never executed: return -1;
-1;
never executed: return -1;
0
325-
326 return
executed 6 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
1;
executed 6 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
6
327}-
328-
329int srp_generate_server_master_secret(SSL *s)-
330{-
331 BIGNUM *K = -
332 ((void *)0)-
333 , *u = -
334 ((void *)0)-
335 ;-
336 int ret = -1, tmp_len = 0;-
337 unsigned char *tmp = -
338 ((void *)0)-
339 ;-
340-
341 if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N)
!SRP_Verify_A_... s->srp_ctx.N)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
342 goto
never executed: goto err;
err;
never executed: goto err;
0
343 if ((
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) ==
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
344 ((void *)0)
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
345 )-
346 goto
never executed: goto err;
err;
never executed: goto err;
0
347 if ((
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
K = SRP_Calc_server_key(s->srp_ctx.A, s->srp_ctx.v, u, s->srp_ctx.b,
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
348 s->srp_ctx.N)) ==
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
349 ((void *)0)
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
350 )-
351 goto
never executed: goto err;
err;
never executed: goto err;
0
352-
353 tmp_len = ((BN_num_bits(K)+7)/8);-
354 if ((
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
tmp = CRYPTO_malloc(tmp_len, __FILE__, 264)) ==
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
355 ((void *)0)
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
356 ) {-
357 ossl_statem_fatal((s), (80), (589), ((1|64)),-
358 __FILE__-
359 ,-
360 266-
361 )-
362 ;-
363 goto
never executed: goto err;
err;
never executed: goto err;
0
364 }-
365 BN_bn2bin(K, tmp);-
366-
367 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1);-
368 err:
code before this statement executed 10 times by 1 test: err:
Executed by:
  • libssl.so.1.1
10
369 BN_clear_free(K);-
370 BN_clear_free(u);-
371 return
executed 10 times by 1 test: return ret;
Executed by:
  • libssl.so.1.1
ret;
executed 10 times by 1 test: return ret;
Executed by:
  • libssl.so.1.1
10
372}-
373-
374-
375int srp_generate_client_master_secret(SSL *s)-
376{-
377 BIGNUM *x = -
378 ((void *)0)-
379 , *u = -
380 ((void *)0)-
381 , *K = -
382 ((void *)0)-
383 ;-
384 int ret = -1, tmp_len = 0;-
385 char *passwd = -
386 ((void *)0)-
387 ;-
388 unsigned char *tmp = -
389 ((void *)0)-
390 ;-
391-
392-
393-
394-
395 if (SRP_Verify_B_mod_N(s->srp_ctx.B, s->srp_ctx.N) == 0
SRP_Verify_B_m...rp_ctx.N) == 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
396 || (
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N))
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
397 ==
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
398 ((void *)0)
(u = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
399 -
400 || s->srp_ctx.SRP_give_srp_client_pwd_callback ==
s->srp_ctx.SRP...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
401 ((void *)0)
s->srp_ctx.SRP...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
402 ) {-
403 ossl_statem_fatal((s), (80), (595), ((4|64)),-
404 __FILE__-
405 ,-
406 294-
407 )-
408 ;-
409 goto
never executed: goto err;
err;
never executed: goto err;
0
410 }-
411 if ((
(passwd = s->s...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
passwd = s->srp_ctx.SRP_give_srp_client_pwd_callback(s,
(passwd = s->s...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
412 s->srp_ctx.SRP_cb_arg))
(passwd = s->s...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
413 ==
(passwd = s->s...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
414 ((void *)0)
(passwd = s->s...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
415 ) {-
416 ossl_statem_fatal((s), (80), (595), (234),-
417-
418 __FILE__-
419 ,-
420-
421 302-
422 )-
423-
424 ;-
425 goto
never executed: goto err;
err;
never executed: goto err;
0
426 }-
427 if ((
(x = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
x = SRP_Calc_x(s->srp_ctx.s, s->srp_ctx.login, passwd)) ==
(x = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
428 ((void *)0)
(x = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
429 -
430 || (
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
K = SRP_Calc_client_key(s->srp_ctx.N, s->srp_ctx.B,
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
431 s->srp_ctx.g, x,
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
432 s->srp_ctx.a, u)) ==
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
433 ((void *)0)
(K = SRP_Calc_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
434 ) {-
435 ossl_statem_fatal((s), (80), (595), ((4|64)),-
436 __FILE__-
437 ,-
438 310-
439 )-
440 ;-
441 goto
never executed: goto err;
err;
never executed: goto err;
0
442 }-
443-
444 tmp_len = ((BN_num_bits(K)+7)/8);-
445 if ((
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
tmp = CRYPTO_malloc(tmp_len, __FILE__, 315)) ==
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
446 ((void *)0)
(tmp = CRYPTO_...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
447 ) {-
448 ossl_statem_fatal((s), (80), (595), ((1|64)),-
449 __FILE__-
450 ,-
451 317-
452 )-
453 ;-
454 goto
never executed: goto err;
err;
never executed: goto err;
0
455 }-
456 BN_bn2bin(K, tmp);-
457-
458 ret = ssl_generate_master_secret(s, tmp, tmp_len, 1);-
459 err:
code before this statement executed 10 times by 1 test: err:
Executed by:
  • libssl.so.1.1
10
460 BN_clear_free(K);-
461 BN_clear_free(x);-
462 if (passwd !=
passwd != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
463 ((void *)0)
passwd != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
464 )-
465 CRYPTO_clear_free(passwd, strlen(passwd), __FILE__, 327);
executed 10 times by 1 test: CRYPTO_clear_free(passwd, strlen(passwd), __FILE__, 327);
Executed by:
  • libssl.so.1.1
10
466 BN_clear_free(u);-
467 return
executed 10 times by 1 test: return ret;
Executed by:
  • libssl.so.1.1
ret;
executed 10 times by 1 test: return ret;
Executed by:
  • libssl.so.1.1
10
468}-
469-
470int srp_verify_server_param(SSL *s)-
471{-
472 SRP_CTX *srp = &s->srp_ctx;-
473-
474-
475-
476-
477 if (BN_ucmp(srp->g, srp->N) >= 0
BN_ucmp(srp->g, srp->N) >= 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
|| BN_ucmp(srp->B, srp->N) >= 0
BN_ucmp(srp->B, srp->N) >= 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
0-10
478 || BN_is_zero(srp->B)
BN_is_zero(srp->B)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-10
479 ossl_statem_fatal((s), (47), (596), (390),-
480 __FILE__-
481 ,-
482 342-
483 )-
484 ;-
485 return
never executed: return 0;
0;
never executed: return 0;
0
486 }-
487-
488 if (BN_num_bits(srp->N) < srp->strength
BN_num_bits(sr... srp->strengthDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-10
489 ossl_statem_fatal((s), (71), (596), (241),-
490 __FILE__-
491 ,-
492 348-
493 )-
494 ;-
495 return
never executed: return 0;
0;
never executed: return 0;
0
496 }-
497-
498 if (srp->SRP_verify_param_callback
srp->SRP_verify_param_callbackDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-10
499 if (srp->SRP_verify_param_callback(s, srp->SRP_cb_arg) <= 0
srp->SRP_verif...P_cb_arg) <= 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
500 ossl_statem_fatal((s), (71), (596), (234),-
501-
502 __FILE__-
503 ,-
504-
505 356-
506 )-
507-
508 ;-
509 return
never executed: return 0;
0;
never executed: return 0;
0
510 }-
511 }
never executed: end of block
else if (!SRP_check_known_gN_param(srp->g, srp->N)
!SRP_check_kno...rp->g, srp->N)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
) {
0-10
512 ossl_statem_fatal((s), (71), (596), (241),-
513 __FILE__-
514 ,-
515 361-
516 )-
517 ;-
518 return
never executed: return 0;
0;
never executed: return 0;
0
519 }-
520-
521 return
executed 10 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
1;
executed 10 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
10
522}-
523-
524int SRP_Calc_A_param(SSL *s)-
525{-
526 unsigned char rnd[48];-
527-
528 if (RAND_priv_bytes(rnd, sizeof(rnd)) <= 0
RAND_priv_byte...eof(rnd)) <= 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
529 return
never executed: return 0;
0;
never executed: return 0;
0
530 s->srp_ctx.a = BN_bin2bn(rnd, sizeof(rnd), s->srp_ctx.a);-
531 OPENSSL_cleanse(rnd, sizeof(rnd));-
532-
533 if (!(s->srp_ctx.A = SRP_Calc_A(s->srp_ctx.a, s->srp_ctx.N, s->srp_ctx.g))
!(s->srp_ctx.A...s->srp_ctx.g))Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
)
0-10
534 return
never executed: return 0;
0;
never executed: return 0;
0
535-
536 return
executed 10 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
1;
executed 10 times by 1 test: return 1;
Executed by:
  • libssl.so.1.1
10
537}-
538-
539BIGNUM *SSL_get_srp_g(SSL *s)-
540{-
541 if (s->srp_ctx.g !=
s->srp_ctx.g != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
542 ((void *)0)
s->srp_ctx.g != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
543 )-
544 return
never executed: return s->srp_ctx.g;
s->srp_ctx.g;
never executed: return s->srp_ctx.g;
0
545 return
never executed: return s->ctx->srp_ctx.g;
s->ctx->srp_ctx.g;
never executed: return s->ctx->srp_ctx.g;
0
546}-
547-
548BIGNUM *SSL_get_srp_N(SSL *s)-
549{-
550 if (s->srp_ctx.N !=
s->srp_ctx.N != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
551 ((void *)0)
s->srp_ctx.N != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
552 )-
553 return
never executed: return s->srp_ctx.N;
s->srp_ctx.N;
never executed: return s->srp_ctx.N;
0
554 return
never executed: return s->ctx->srp_ctx.N;
s->ctx->srp_ctx.N;
never executed: return s->ctx->srp_ctx.N;
0
555}-
556-
557char *SSL_get_srp_username(SSL *s)-
558{-
559 if (s->srp_ctx.login !=
s->srp_ctx.log...!= ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
560 ((void *)0)
s->srp_ctx.log...!= ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • libssl.so.1.1
FALSEnever evaluated
0-10
561 )-
562 return
executed 10 times by 1 test: return s->srp_ctx.login;
Executed by:
  • libssl.so.1.1
s->srp_ctx.login;
executed 10 times by 1 test: return s->srp_ctx.login;
Executed by:
  • libssl.so.1.1
10
563 return
never executed: return s->ctx->srp_ctx.login;
s->ctx->srp_ctx.login;
never executed: return s->ctx->srp_ctx.login;
0
564}-
565-
566char *SSL_get_srp_userinfo(SSL *s)-
567{-
568 if (s->srp_ctx.info !=
s->srp_ctx.info != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
569 ((void *)0)
s->srp_ctx.info != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
570 )-
571 return
never executed: return s->srp_ctx.info;
s->srp_ctx.info;
never executed: return s->srp_ctx.info;
0
572 return
never executed: return s->ctx->srp_ctx.info;
s->ctx->srp_ctx.info;
never executed: return s->ctx->srp_ctx.info;
0
573}-
574-
575-
576-
577-
578int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name)-
579{-
580 return
executed 11 times by 1 test: return ssl3_ctx_ctrl(ctx, 79, 0, name);
Executed by:
  • libssl.so.1.1
ssl3_ctx_ctrl(ctx, 79, 0, name);
executed 11 times by 1 test: return ssl3_ctx_ctrl(ctx, 79, 0, name);
Executed by:
  • libssl.so.1.1
11
581}-
582-
583int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password)-
584{-
585 return
executed 6 times by 1 test: return ssl3_ctx_ctrl(ctx, 81, 0, password);
Executed by:
  • libssl.so.1.1
ssl3_ctx_ctrl(ctx, 81, 0, password);
executed 6 times by 1 test: return ssl3_ctx_ctrl(ctx, 81, 0, password);
Executed by:
  • libssl.so.1.1
6
586}-
587-
588int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength)-
589{-
590 return
executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) );
Executed by:
  • libssl.so.1.1
ssl3_ctx_ctrl(ctx, 80, strength,
executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) );
Executed by:
  • libssl.so.1.1
1
591
executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) );
Executed by:
  • libssl.so.1.1
1
592 ((void *)0)
executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) );
Executed by:
  • libssl.so.1.1
1
593 );
executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) );
Executed by:
  • libssl.so.1.1
1
594}-
595-
596int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,-
597 int (*cb) (SSL *, void *))-
598{-
599 return
executed 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
ssl3_ctx_callback_ctrl(ctx, 76,
executed 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
1
600 (void (*)(void))cb);
executed 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
1
601}-
602-
603int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg)-
604{-
605 return
executed 9 times by 1 test: return ssl3_ctx_ctrl(ctx, 78, 0, arg);
Executed by:
  • libssl.so.1.1
ssl3_ctx_ctrl(ctx, 78, 0, arg);
executed 9 times by 1 test: return ssl3_ctx_ctrl(ctx, 78, 0, arg);
Executed by:
  • libssl.so.1.1
9
606}-
607-
608int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,-
609 int (*cb) (SSL *, int *, void *))-
610{-
611 return
executed 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
ssl3_ctx_callback_ctrl(ctx, 75,
executed 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
10
612 (void (*)(void))cb);
executed 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
10
613}-
614-
615int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,-
616 char *(*cb) (SSL *, void *))-
617{-
618 return
executed 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
ssl3_ctx_callback_ctrl(ctx, 77,
executed 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
5
619 (void (*)(void))cb);
executed 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb);
Executed by:
  • libssl.so.1.1
5
620}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2