/foundation/communication/netstack/utils/napi_utils/src/ |
H A D | secure_char.cpp | 22 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 D | secure_char.h | 24 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 D | net_http_utils.h | 73 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 D | net_http_request.h | 84 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 D | connect_context.h | 44 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 D | net_http_utils.cpp | 304 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 D | net_http_request.cpp | 192 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 D | net_http_request_context.cpp | 371 SecureChar keyPasswd; in ParseParams() 373 keyPasswd = SecureChar(ops->clientCert->keyPassword); in ParseParams() 375 keyPasswd = SecureChar(""); in ParseParams()
|
H A D | net_http_client_exec.cpp | 702 SecureChar keyPasswd; in SetSSLCertOption()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/async_context/src/ |
H A D | connect_context.cpp | 172 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 D | http_request_options.h | 94 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 D | http_request_options.cpp | 205 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 D | HttpRequestOptionsTest.cpp | 152 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 D | request_context.cpp | 719 Secure::SecureChar keyPasswd = Secure::SecureChar( in ParseClientCert()
|
/foundation/communication/netstack/test/fuzztest/http_fuzzer/ |
H A D | http_fuzzer.cpp | 226 Secure::SecureChar pwd(str); in SetClientCertFuzzTest()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/ |
H A D | websocket_exec.cpp | 727 context->clientKey_ = Secure::SecureChar(realKeyPath); in FillCaPath()
|
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/ |
H A D | http_exec.cpp | 910 Secure::SecureChar keyPasswd; in AddCurlHandle()
|