Home
last modified time | relevance | path

Searched refs:SecureChar (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/netstack/utils/napi_utils/src/
H A Dsecure_char.cpp22 SecureChar::SecureChar() : data_(std::make_unique<char[]>(0)) {} in SecureChar() function in OHOS::NetStack::Secure::SecureChar
24 SecureChar::~SecureChar() in ~SecureChar()
29 SecureChar::SecureChar(const std::string &SecureChar) in SecureChar() argument
30 : length_(SecureChar.length()), data_(std::make_unique<char[]>(length_ + 1)) in SecureChar()
36 if (memcpy_s(data_.get(), length_, SecureChar.c_str(), length_) != EOK) { in SecureChar()
42 SecureChar argument
52 SecureChar(const SecureChar &SecureChar) SecureChar() argument
57 operator =(const SecureChar &SecureChar) operator =() argument
[all...]
/foundation/communication/netstack/utils/napi_utils/include/
H A Dsecure_char.h24 class SecureChar { class
26 SecureChar();
27 ~SecureChar();
28 explicit SecureChar(const std::string &SecureChar);
29 SecureChar(const uint8_t *SecureChar, size_t length);
30 SecureChar(const SecureChar &SecureChar);
[all...]
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dnet_http_utils.h73 class SecureChar { class
75 SecureChar();
76 ~SecureChar();
77 explicit SecureChar(const std::string &secureChar);
78 SecureChar(const uint8_t *secureChar, size_t length);
79 SecureChar(const SecureChar &secureChar);
80 SecureChar &operator=(const SecureChar &secureChar);
H A Dnet_http_request.h84 void SetClientCert(std::string &cert, std::string &certType, std::string &key, SecureChar &keyPasswd);
126 void GetClientCert(std::string &cert, std::string &certType, std::string &key, SecureChar &keyPasswd);
176 SecureChar keyPasswd_;
/foundation/communication/netstack/frameworks/js/napi/websocket/async_context/include/
H A Dconnect_context.h44 void SetClientCert(std::string &cert, Secure::SecureChar &key, Secure::SecureChar &keyPassword);
46 void GetClientCert(std::string &cert, Secure::SecureChar &key, Secure::SecureChar &keyPassword);
80 Secure::SecureChar clientKey_;
82 Secure::SecureChar keyPassword_;
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_utils.cpp304 SecureChar::SecureChar() : data_(std::make_unique<char[]>(0)) {} in GetNowTimeGMT() function in OHOS::NetStack::Http::SecureChar
306 SecureChar::~SecureChar() in GetNowTimeGMT()
311 SecureChar::SecureChar(const std::string &secureChar) in GetNowTimeGMT() function in OHOS::NetStack::Http::SecureChar
324 SecureChar::SecureChar(const uint8_t *secureChar, size_t length) in GetNowTimeGMT() function in OHOS::NetStack::Http::SecureChar
334 SecureChar::SecureChar(cons in GetNowTimeGMT() function in OHOS::NetStack::Http::SecureChar
[all...]
H A Dnet_http_request.cpp192 std::string &cert, std::string &certType, std::string &key, SecureChar &keyPasswd) in SetClientCert()
206 std::string &cert, std::string &certType, std::string &key, SecureChar &keyPasswd) in GetClientCert()
H A Dnet_http_request_context.cpp371 SecureChar keyPasswd; in ParseParams()
373 keyPasswd = SecureChar(ops->clientCert->keyPassword); in ParseParams()
375 keyPasswd = SecureChar(""); in ParseParams()
H A Dnet_http_client_exec.cpp702 SecureChar keyPasswd; in SetSSLCertOption()
/foundation/communication/netstack/frameworks/js/napi/websocket/async_context/src/
H A Dconnect_context.cpp172 void ConnectContext::GetClientCert(std::string &cert, Secure::SecureChar &key, Secure::SecureChar &keyPassword) in GetClientCert()
179 void ConnectContext::SetClientCert(std::string &cert, Secure::SecureChar &key, Secure::SecureChar &keyPassword) in SetClientCert()
198 Secure::SecureChar keyPath = in ParseClientCert()
199 Secure::SecureChar(NapiUtils::GetStringPropertyUtf8(GetEnv(), jsCert, ContextKey::KEY_PATH)); in ParseClientCert()
200 Secure::SecureChar keyPassword = in ParseClientCert()
201 Secure::SecureChar(NapiUtils::GetStringPropertyUtf8(GetEnv(), jsCert, ContextKey::KEY_PASSWD)); in ParseClientCert()
/foundation/communication/netstack/frameworks/js/napi/http/options/include/
H A Dhttp_request_options.h94 void SetClientCert(std::string &cert, std::string &certType, std::string &key, Secure::SecureChar &keyPasswd);
140 void GetClientCert(std::string &cert, std::string &certType, std::string &key, Secure::SecureChar &keyPasswd);
190 Secure::SecureChar keyPasswd_;
/foundation/communication/netstack/frameworks/js/napi/http/options/src/
H A Dhttp_request_options.cpp205 std::string &cert, std::string &certType, std::string &key, Secure::SecureChar &keyPasswd) in SetClientCert()
219 std::string &cert, std::string &certType, std::string &key, Secure::SecureChar &keyPasswd) in GetClientCert()
/foundation/communication/netstack/test/unittest/http/
H A DHttpRequestOptionsTest.cpp152 Secure::SecureChar keyPasswd("password"); in HWTEST_F()
159 Secure::SecureChar retrievedKeyPasswd; in HWTEST_F()
/foundation/communication/netstack/frameworks/js/napi/http/async_context/src/
H A Drequest_context.cpp719 Secure::SecureChar keyPasswd = Secure::SecureChar( in ParseClientCert()
/foundation/communication/netstack/test/fuzztest/http_fuzzer/
H A Dhttp_fuzzer.cpp226 Secure::SecureChar pwd(str); in SetClientCertFuzzTest()
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
H A Dwebsocket_exec.cpp727 context->clientKey_ = Secure::SecureChar(realKeyPath); in FillCaPath()
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/
H A Dhttp_exec.cpp910 Secure::SecureChar keyPasswd; in AddCurlHandle()

Completed in 15 milliseconds