… | |
… | |
132 | rsa_hash (const rsaid &id, const rsachallenge &chg, rsaresponse &h) |
132 | rsa_hash (const rsaid &id, const rsachallenge &chg, rsaresponse &h) |
133 | { |
133 | { |
134 | EVP_MD_CTX ctx; |
134 | EVP_MD_CTX ctx; |
135 | |
135 | |
136 | EVP_MD_CTX_init (&ctx); |
136 | EVP_MD_CTX_init (&ctx); |
137 | require (EVP_DigestInit (&ctx, RSA_HASH)); |
137 | require (EVP_DigestInit (&ctx, RSA_HASH)); |
138 | require (EVP_DigestUpdate(&ctx, &chg, sizeof chg)); |
138 | require (EVP_DigestUpdate (&ctx, &chg, sizeof chg)); |
139 | require (EVP_DigestUpdate(&ctx, &id, sizeof id)); |
139 | require (EVP_DigestUpdate (&ctx, &id, sizeof id)); |
140 | require (EVP_DigestFinal (&ctx, (unsigned char *)&h, 0)); |
140 | require (EVP_DigestFinal (&ctx, (unsigned char *)&h, 0)); |
141 | EVP_MD_CTX_cleanup (&ctx); |
141 | EVP_MD_CTX_cleanup (&ctx); |
142 | } |
142 | } |
143 | |
143 | |
144 | struct rsa_entry |
144 | struct rsa_entry |
145 | { |
145 | { |
… | |
… | |
924 | } |
924 | } |
925 | } |
925 | } |
926 | |
926 | |
927 | delete ictx; ictx = 0; |
927 | delete ictx; ictx = 0; |
928 | delete octx; octx = 0; |
928 | delete octx; octx = 0; |
929 | #if ENABLE_DNS |
|
|
930 | dnsv4_reset_connection (); |
|
|
931 | #endif |
|
|
932 | |
929 | |
933 | si.host = 0; |
930 | si.host = 0; |
934 | |
931 | |
935 | last_activity = 0.; |
932 | last_activity = 0.; |
936 | //last_si_change = 0.; |
933 | //last_si_change = 0.; |