… | |
… | |
82 | require (EVP_DigestUpdate(&ctx, &id, sizeof id)); |
82 | require (EVP_DigestUpdate(&ctx, &id, sizeof id)); |
83 | require (EVP_DigestFinal (&ctx, (unsigned char *)&h, 0)); |
83 | require (EVP_DigestFinal (&ctx, (unsigned char *)&h, 0)); |
84 | EVP_MD_CTX_cleanup (&ctx); |
84 | EVP_MD_CTX_cleanup (&ctx); |
85 | } |
85 | } |
86 | |
86 | |
87 | struct rsa_entry { |
87 | struct rsa_entry |
|
|
88 | { |
88 | tstamp expire; |
89 | tstamp expire; |
89 | rsaid id; |
90 | rsaid id; |
90 | rsachallenge chg; |
91 | rsachallenge chg; |
91 | }; |
92 | }; |
92 | |
93 | |
… | |
… | |
191 | { |
192 | { |
192 | for (i = QUEUEDEPTH; --i > 0; ) |
193 | for (i = QUEUEDEPTH; --i > 0; ) |
193 | delete queue[i]; |
194 | delete queue[i]; |
194 | } |
195 | } |
195 | |
196 | |
196 | struct net_rateinfo { |
197 | struct net_rateinfo |
|
|
198 | { |
197 | u32 host; |
199 | u32 host; |
198 | double pcnt, diff; |
200 | double pcnt, diff; |
199 | tstamp last; |
201 | tstamp last; |
200 | }; |
202 | }; |
201 | |
203 | |