mirror of
https://gitee.com/openharmony/security_code_signature
synced 2024-11-23 06:10:10 +00:00
commit
7ae3014c51
@ -15,11 +15,12 @@
|
||||
|
||||
#ifndef OWNERID_UTILS_H
|
||||
#define OWNERID_UTILS_H
|
||||
#include <stdint.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int ConvertIdType(int idType, const char *ownerId);
|
||||
uint32_t ConvertIdType(int idType, const char *ownerId);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -21,9 +21,9 @@
|
||||
#include <unordered_set>
|
||||
|
||||
// the list will be removed before 930
|
||||
const std::unordered_set<std::string> g_tempAllowList;
|
||||
static const std::unordered_set<std::string> g_tempAllowList;
|
||||
|
||||
int ConvertIdType(int idType, const char *ownerId)
|
||||
uint32_t ConvertIdType(int idType, const char *ownerId)
|
||||
{
|
||||
if (idType != PROCESS_OWNERID_APP || ownerId == nullptr) {
|
||||
return idType;
|
||||
|
Loading…
Reference in New Issue
Block a user