MCPcopy Create free account
hub / github.com/apache/trafficserver / SslHdrExpandX509Field

Function SslHdrExpandX509Field

plugins/experimental/sslheaders/expand.cc:113–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111};
112
113bool
114SslHdrExpandX509Field(BIO *bio, X509 *x509, ExpansionField field)
115{
116 // Rewind the BIO.
117 (void)BIO_reset(bio);
118
119 if (field < expansions.size()) {
120 expansions[field](x509, bio);
121 }
122
123#if 0
124 if (BIO_pending(bio)) {
125 long len;
126 char * ptr;
127 len = BIO_get_mem_data(bio, &ptr);
128 SslHdrDebug("X509 field %d: %.*s", (int)field, (int)len, ptr);
129 }
130#endif
131
132 return true;
133}

Callers 1

SslHdrExpandFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected