Called upon OpenSSL errors; returns a non-OK status with an error message.
| 166 | |
| 167 | // Called upon OpenSSL errors; returns a non-OK status with an error message. |
| 168 | static Status OpenSSLErr(const string& function, const string& context) { |
| 169 | stringstream errstream; |
| 170 | ERR_print_errors_cb(OpenSSLErrCallback, &errstream); |
| 171 | return Status(Substitute("OpenSSL error in $0 $1: $2", function, context, errstream.str())); |
| 172 | } |
| 173 | |
| 174 | void SeedOpenSSLRNG() { |
| 175 | RAND_load_file("/dev/urandom", RNG_RESEED_BYTES); |
no test coverage detected