MCPcopy Create free account
hub / github.com/apache/mesos / error_string

Function error_string

3rdparty/libprocess/src/openssl.cpp:355–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353
354
355string error_string(unsigned long code)
356{
357 // SSL library guarantees to stay within 120 bytes.
358 char buffer[128];
359
360 ERR_error_string_n(code, buffer, sizeof(buffer));
361 string s(buffer);
362
363 if (code == SSL_ERROR_SYSCALL) {
364 s += error_string(ERR_get_error());
365 }
366
367 return s;
368}
369
370
371#if OPENSSL_VERSION_NUMBER >= 0x0090800fL && !defined(OPENSSL_NO_ECDH)

Callers 2

initialize_ecdh_curveFunction · 0.85
reinitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected