MCPcopy Create free account
hub / github.com/apache/impala / wrap

Method wrap

be/src/transport/TSasl.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66uint8_t* TSasl::wrap(const uint8_t* outgoing,
67 const int offset, const uint32_t len, uint32_t* outLen) {
68 uint32_t outputlen;
69 uint8_t* output;
70 int result;
71
72 result = sasl_encode(conn, reinterpret_cast<const char*>(outgoing) + offset, len,
73 const_cast<const char**>(reinterpret_cast<char**>(&output)), &outputlen);
74 if (result != SASL_OK) {
75 throw SaslException(sasl_errdetail(conn));
76 }
77 *outLen = outputlen;
78 return output;
79}
80
81string TSasl::getUsername() {
82 const char* username;

Callers 15

_connectMethod · 0.80
_format_tipFunction · 0.80
setAbortedBitsMethod · 0.80
toThriftMethod · 0.80
debugStringMethod · 0.80
StringLiteralMethod · 0.80
toThriftMethod · 0.80

Calls 1

SaslExceptionClass · 0.85

Tested by

no test coverage detected