MCPcopy Create free account
hub / github.com/apache/brpc / IsPemString

Function IsPemString

src/brpc/details/ssl_helper.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static const char* const PEM_START = "-----BEGIN";
50
51static 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
60const char* SSLStateToString(SSLState s) {
61 switch (s) {

Callers 2

ssl_helper.cppFile · 0.70
LoadCertificateFunction · 0.70

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected