| 49 | static const char* const PEM_START = "-----BEGIN"; |
| 50 | |
| 51 | static bool IsPemString(const std::string& input) { |
| 52 | for (const char* s = input.c_str(); *s != '\0'; ++s) { |
| 53 | if (*s != '\n') { |
| 54 | return strncmp(s, PEM_START, strlen(PEM_START)) == 0; |
| 55 | } |
| 56 | } |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | const char* SSLStateToString(SSLState s) { |
| 61 | switch (s) { |
no test coverage detected