Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / nsNSSCertHelper.h
blobeb7aa4050bed3a0f6e9aa73e5a517836c08d5f4c
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsNSSCertHelper_h
6 #define nsNSSCertHelper_h
8 #include "nsString.h"
10 // If input is valid UTF-8, converts from UTF-8 to UTF-16. Otherwise,
11 // converts from Latin1 to UTF-16.
12 void LossyUTF8ToUTF16(const char* str, uint32_t len, /*out*/ nsAString& result);
14 // Must be used on the main thread only.
15 nsresult GetPIPNSSBundleString(const char* stringName, nsAString& result);
16 nsresult GetPIPNSSBundleString(const char* stringName, nsACString& result);
17 nsresult PIPBundleFormatStringFromName(const char* stringName,
18 const nsTArray<nsString>& params,
19 nsAString& result);
21 #endif // nsNSSCertHelper_h