| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | int SSL_CTX_SRP_CTX_free(struct ssl_ctx_st *ctx) | - |
| 5 | { | - |
| 6 | if (ctx == | TRUE | never evaluated | | FALSE | evaluated 8017 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8017 |
| 7 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8017 times by 2 testsEvaluated 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 | returnexecuted 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 | | - |
| 25 | int SSL_SRP_CTX_free(struct ssl_st *s) | - |
| 26 | { | - |
| 27 | if (s == | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 28 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated 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 | returnexecuted 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 | | - |
| 46 | int SSL_SRP_CTX_init(struct ssl_st *s) | - |
| 47 | { | - |
| 48 | SSL_CTX *ctx; | - |
| 49 | | - |
| 50 | if ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
s == | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 51 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 52 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
|| ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx = s->ctx) == | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 53 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 54 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated 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 (((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.N != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 73 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 74 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 75 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.N = BN_dup(ctx->srp_ctx.N)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 76 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 77 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 78 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.g != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 79 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 80 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 81 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.g = BN_dup(ctx->srp_ctx.g)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 82 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 83 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 84 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.s != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 85 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 86 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 87 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.s = BN_dup(ctx->srp_ctx.s)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 88 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 89 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 90 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.B != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 91 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 92 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 93 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.B = BN_dup(ctx->srp_ctx.B)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 94 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 95 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 96 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.A != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 97 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 98 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 99 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.A = BN_dup(ctx->srp_ctx.A)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 100 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 101 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 102 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.a != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 103 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 104 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 105 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.a = BN_dup(ctx->srp_ctx.a)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 106 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 107 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 108 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.v != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 109 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 110 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 111 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.v = BN_dup(ctx->srp_ctx.v)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 112 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 113 | )| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 114 | ((| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.b != | TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 115 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8322 |
| 116 | )| TRUE | never evaluated | | FALSE | evaluated 8322 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 0-8322 |
| 117 | ((| TRUE | never evaluated | | FALSE | never evaluated |
s->srp_ctx.b = BN_dup(ctx->srp_ctx.b)) == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 118 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 119 | )| TRUE | never evaluated | | FALSE | never 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 ((| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 8311 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.login != | TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 8311 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 11-8311 |
| 124 | ((void *)0)| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 8311 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 11-8311 |
| 125 | )| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 8311 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 11-8311 |
| 126 | ((| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
s->srp_ctx.login = CRYPTO_strdup(ctx->srp_ctx.login, __FILE__, 102)) == | TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 127 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
| 0-11 |
| 128 | )| TRUE | never evaluated | | FALSE | evaluated 11 times by 1 test |
) { | 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 ((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 8316 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
ctx->srp_ctx.info != | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 8316 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 6-8316 |
| 133 | ((void *)0)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 8316 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 6-8316 |
| 134 | )| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 8316 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
&& | 6-8316 |
| 135 | ((| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
s->srp_ctx.info = CRYPTO_strdup(ctx->srp_ctx.info, __FILE__, 107)) == | TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 136 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 137 | )| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
) { | 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 | returnexecuted 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 | | - |
| 159 | int SSL_CTX_SRP_CTX_init(struct ssl_ctx_st *ctx) | - |
| 160 | { | - |
| 161 | if (ctx == | TRUE | never evaluated | | FALSE | evaluated 8017 times by 2 testsEvaluated by:- libssl.so.1.1
- tls13encryptiontest
|
| 0-8017 |
| 162 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 8017 times by 2 testsEvaluated 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 | returnexecuted 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 | | - |
| 173 | int 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 ((| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
s->srp_ctx.TLS_ext_srp_username_callback != | TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| 0-10 |
| 180 | ((void *)0)| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| 0-10 |
| 181 | )| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
&& | 0-10 |
| 182 | ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
al =| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 183 | s->srp_ctx.TLS_ext_srp_username_callback(s, ad,| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 184 | s->srp_ctx.SRP_cb_arg)) !=| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 185 | 0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
| 186 | return never executed: return al; al;never executed: return al; | 0 |
| 187 | | - |
| 188 | *ad = 80; | - |
| 189 | if ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
s->srp_ctx.N == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 190 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 191 | )| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
|| | 0-10 |
| 192 | (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
s->srp_ctx.g == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 193 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 194 | )| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
|| | 0-10 |
| 195 | (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
s->srp_ctx.s == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 196 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 197 | )| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
s->srp_ctx.v == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 198 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 199 | )| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
| 200 | return never executed: return 2; 2;never executed: return 2; | 0 |
| 201 | | - |
| 202 | if (RAND_priv_bytes(b, sizeof(b)) <= 0| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 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 | returnexecuted 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; ((| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
s->srp_ctx.B =| TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 212 | SRP_Calc_B(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g,| TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 213 | s->srp_ctx.v)) !=| TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 214 | | TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 215 | ((void *)0)| TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 216 | )| TRUE | evaluated 10 times by 1 test | | FALSE | never 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; | 0-10 |
| 217 | } | - |
| 218 | | - |
| 219 | | - |
| 220 | | - |
| 221 | | - |
| 222 | | - |
| 223 | int 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 == | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 228 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 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| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 242 | (user, pass, &s->srp_ctx.s, &s->srp_ctx.v, GN->N, GN->g)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 243 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 244 | | - |
| 245 | returnexecuted 4 times by 1 test: return 1; 1;executed 4 times by 1 test: return 1; | 4 |
| 246 | } | - |
| 247 | | - |
| 248 | int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g, | - |
| 249 | BIGNUM *sa, BIGNUM *v, char *info) | - |
| 250 | { | - |
| 251 | if (N != | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 252 | ((void *)0)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 253 | ) { | - |
| 254 | if (s->srp_ctx.N != | TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 255 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 256 | ) { | - |
| 257 | if (!BN_copy(s->srp_ctx.N, N)| TRUE | never evaluated | | FALSE | never 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); | 6 |
| 265 | } | - |
| 266 | if (g != | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 267 | ((void *)0)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 268 | ) { | - |
| 269 | if (s->srp_ctx.g != | TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 270 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 271 | ) { | - |
| 272 | if (!BN_copy(s->srp_ctx.g, g)| TRUE | never evaluated | | FALSE | never 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); | 6 |
| 280 | } | - |
| 281 | if (sa != | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 282 | ((void *)0)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 283 | ) { | - |
| 284 | if (s->srp_ctx.s != | TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 285 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 286 | ) { | - |
| 287 | if (!BN_copy(s->srp_ctx.s, sa)| TRUE | never evaluated | | FALSE | never 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); | 6 |
| 295 | } | - |
| 296 | if (v != | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 297 | ((void *)0)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 298 | ) { | - |
| 299 | if (s->srp_ctx.v != | TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 300 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
| 0-6 |
| 301 | ) { | - |
| 302 | if (!BN_copy(s->srp_ctx.v, v)| TRUE | never evaluated | | FALSE | never 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); | 6 |
| 310 | } | - |
| 311 | if (info != | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-4 |
| 312 | ((void *)0)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-4 |
| 313 | ) { | - |
| 314 | if (s->srp_ctx.info| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 315 | CRYPTO_free(s->srp_ctx.info, __FILE__, 237); never executed: CRYPTO_free(s->srp_ctx.info, __FILE__, 237); | 0 |
| 316 | if ((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
s->srp_ctx.info = CRYPTO_strdup(info, __FILE__, 238)) == | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 317 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 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 | 4 |
| 321 | | - |
| 322 | if (!(s->srp_ctx.N)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
|| | 0-6 |
| 323 | !(s->srp_ctx.g)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
|| !(s->srp_ctx.s)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
|| !(s->srp_ctx.v)| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
) | 0-6 |
| 324 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 325 | | - |
| 326 | returnexecuted 6 times by 1 test: return 1; 1;executed 6 times by 1 test: return 1; | 6 |
| 327 | } | - |
| 328 | | - |
| 329 | int 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)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
| 342 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 343 | if ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 344 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 345 | ) | - |
| 346 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 347 | if ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
K = SRP_Calc_server_key(s->srp_ctx.A, s->srp_ctx.v, u, s->srp_ctx.b,| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 348 | s->srp_ctx.N)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 349 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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 ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
tmp = CRYPTO_malloc(tmp_len, __FILE__, 264)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 355 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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: | 10 |
| 369 | BN_clear_free(K); | - |
| 370 | BN_clear_free(u); | - |
| 371 | returnexecuted 10 times by 1 test: return ret; ret;executed 10 times by 1 test: return ret; | 10 |
| 372 | } | - |
| 373 | | - |
| 374 | | - |
| 375 | int 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| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 396 | || (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N))| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 397 | == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 398 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 399 | | - |
| 400 | || s->srp_ctx.SRP_give_srp_client_pwd_callback == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 401 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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 ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
passwd = s->srp_ctx.SRP_give_srp_client_pwd_callback(s,| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 412 | s->srp_ctx.SRP_cb_arg))| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 413 | == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 414 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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 ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
x = SRP_Calc_x(s->srp_ctx.s, s->srp_ctx.login, passwd)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 428 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 429 | | - |
| 430 | || (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
K = SRP_Calc_client_key(s->srp_ctx.N, s->srp_ctx.B,| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 431 | s->srp_ctx.g, x,| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 432 | s->srp_ctx.a, u)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 433 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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 ((| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
tmp = CRYPTO_malloc(tmp_len, __FILE__, 315)) == | TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 446 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 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: | 10 |
| 460 | BN_clear_free(K); | - |
| 461 | BN_clear_free(x); | - |
| 462 | if (passwd != | TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| 0-10 |
| 463 | ((void *)0)| TRUE | evaluated 10 times by 1 test | | FALSE | never 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); | 10 |
| 466 | BN_clear_free(u); | - |
| 467 | returnexecuted 10 times by 1 test: return ret; ret;executed 10 times by 1 test: return ret; | 10 |
| 468 | } | - |
| 469 | | - |
| 470 | int 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| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
|| BN_ucmp(srp->B, srp->N) >= 0| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 478 | || BN_is_zero(srp->B)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) { | 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| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) { | 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| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) { | 0-10 |
| 499 | if (srp->SRP_verify_param_callback(s, srp->SRP_cb_arg) <= 0| TRUE | never evaluated | | FALSE | never 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)| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) { | 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 | returnexecuted 10 times by 1 test: return 1; 1;executed 10 times by 1 test: return 1; | 10 |
| 522 | } | - |
| 523 | | - |
| 524 | int SRP_Calc_A_param(SSL *s) | - |
| 525 | { | - |
| 526 | unsigned char rnd[48]; | - |
| 527 | | - |
| 528 | if (RAND_priv_bytes(rnd, sizeof(rnd)) <= 0| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 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))| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
| 534 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 535 | | - |
| 536 | returnexecuted 10 times by 1 test: return 1; 1;executed 10 times by 1 test: return 1; | 10 |
| 537 | } | - |
| 538 | | - |
| 539 | BIGNUM *SSL_get_srp_g(SSL *s) | - |
| 540 | { | - |
| 541 | if (s->srp_ctx.g != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 542 | ((void *)0)| TRUE | never evaluated | | FALSE | never 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 | | - |
| 548 | BIGNUM *SSL_get_srp_N(SSL *s) | - |
| 549 | { | - |
| 550 | if (s->srp_ctx.N != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 551 | ((void *)0)| TRUE | never evaluated | | FALSE | never 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 | | - |
| 557 | char *SSL_get_srp_username(SSL *s) | - |
| 558 | { | - |
| 559 | if (s->srp_ctx.login != | TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| 0-10 |
| 560 | ((void *)0)| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| 0-10 |
| 561 | ) | - |
| 562 | returnexecuted 10 times by 1 test: return s->srp_ctx.login; s->srp_ctx.login;executed 10 times by 1 test: return s->srp_ctx.login; | 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 | | - |
| 566 | char *SSL_get_srp_userinfo(SSL *s) | - |
| 567 | { | - |
| 568 | if (s->srp_ctx.info != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 569 | ((void *)0)| TRUE | never evaluated | | FALSE | never 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 | | - |
| 578 | int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name) | - |
| 579 | { | - |
| 580 | returnexecuted 11 times by 1 test: return ssl3_ctx_ctrl(ctx, 79, 0, name); ssl3_ctx_ctrl(ctx, 79, 0, name);executed 11 times by 1 test: return ssl3_ctx_ctrl(ctx, 79, 0, name); | 11 |
| 581 | } | - |
| 582 | | - |
| 583 | int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password) | - |
| 584 | { | - |
| 585 | returnexecuted 6 times by 1 test: return ssl3_ctx_ctrl(ctx, 81, 0, password); ssl3_ctx_ctrl(ctx, 81, 0, password);executed 6 times by 1 test: return ssl3_ctx_ctrl(ctx, 81, 0, password); | 6 |
| 586 | } | - |
| 587 | | - |
| 588 | int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength) | - |
| 589 | { | - |
| 590 | returnexecuted 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) ); ssl3_ctx_ctrl(ctx, 80, strength,executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) ); | 1 |
| 591 | executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) ); | 1 |
| 592 | ((void *)0)executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) ); | 1 |
| 593 | );executed 1 time by 1 test: return ssl3_ctx_ctrl(ctx, 80, strength, ((void *)0) ); | 1 |
| 594 | } | - |
| 595 | | - |
| 596 | int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx, | - |
| 597 | int (*cb) (SSL *, void *)) | - |
| 598 | { | - |
| 599 | returnexecuted 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb); ssl3_ctx_callback_ctrl(ctx, 76,executed 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb); | 1 |
| 600 | (void (*)(void))cb);executed 1 time by 1 test: return ssl3_ctx_callback_ctrl(ctx, 76, (void (*)(void))cb); | 1 |
| 601 | } | - |
| 602 | | - |
| 603 | int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg) | - |
| 604 | { | - |
| 605 | returnexecuted 9 times by 1 test: return ssl3_ctx_ctrl(ctx, 78, 0, arg); ssl3_ctx_ctrl(ctx, 78, 0, arg);executed 9 times by 1 test: return ssl3_ctx_ctrl(ctx, 78, 0, arg); | 9 |
| 606 | } | - |
| 607 | | - |
| 608 | int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx, | - |
| 609 | int (*cb) (SSL *, int *, void *)) | - |
| 610 | { | - |
| 611 | returnexecuted 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb); ssl3_ctx_callback_ctrl(ctx, 75,executed 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb); | 10 |
| 612 | (void (*)(void))cb);executed 10 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 75, (void (*)(void))cb); | 10 |
| 613 | } | - |
| 614 | | - |
| 615 | int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx, | - |
| 616 | char *(*cb) (SSL *, void *)) | - |
| 617 | { | - |
| 618 | returnexecuted 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb); ssl3_ctx_callback_ctrl(ctx, 77,executed 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb); | 5 |
| 619 | (void (*)(void))cb);executed 5 times by 1 test: return ssl3_ctx_callback_ctrl(ctx, 77, (void (*)(void))cb); | 5 |
| 620 | } | - |
| | |