Home
last modified time | relevance | path

Searched refs:hKey (Results 1 – 11 of 11) sorted by relevance

/src/crypto/krb5/src/windows/leashdll/
H A Dlshfunc.c853 HKEY hKey; in get_DWORD_from_registry() local
857 rc = RegOpenKeyEx(hBaseKey, key, 0, KEY_QUERY_VALUE, &hKey); in get_DWORD_from_registry()
862 rc = RegQueryValueEx(hKey, value, 0, 0, (LPBYTE) result, &dwCount); in get_DWORD_from_registry()
863 RegCloseKey(hKey); in get_DWORD_from_registry()
885 HKEY hKey; in Leash_reset_default_lifetime() local
888 rc = RegOpenKeyEx(HKEY_CURRENT_USER, LEASH_REGISTRY_KEY_NAME, 0, KEY_WRITE, &hKey); in Leash_reset_default_lifetime()
892 rc = RegDeleteValue(hKey, LEASH_REGISTRY_VALUE_LIFETIME); in Leash_reset_default_lifetime()
893 RegCloseKey(hKey); in Leash_reset_default_lifetime()
903 HKEY hKey; in Leash_set_default_lifetime() local
907 0, 0, KEY_WRITE, 0, &hKey, 0); in Leash_set_default_lifetime()
[all …]
H A Dlshutil.cpp229 HKEY hKey = NULL; in getPrincipalList() local
232 0, KEY_READ, 0, &hKey, 0); in getPrincipalList()
236 hKey, in getPrincipalList()
265 rc = RegEnumValue(hKey, iReg, tempValName, &size, in getPrincipalList()
283 if (hKey) in getPrincipalList()
284 RegCloseKey(hKey); in getPrincipalList()
559 HKEY hKey; in Leash_pec_add_principal() local
562 0, 0, 0, KEY_WRITE, 0, &hKey, 0); in Leash_pec_add_principal()
567 rc = RegSetValueEx(hKey, principal, 0, REG_NONE, NULL, 0); in Leash_pec_add_principal()
571 if (hKey) in Leash_pec_add_principal()
[all …]
H A Dtimesync.c86 HKEY hKey; in get_time_server_name() local
108 0, KEY_QUERY_VALUE, &hKey)) in get_time_server_name()
111 lResult = RegQueryValueEx(hKey, (LPTSTR)valueName, NULL, in get_time_server_name()
115 lResult = RegQueryValueEx(hKey, (LPTSTR)valueName, in get_time_server_name()
/src/crypto/krb5/src/lib/krb5/os/
H A Dccdefname.c91 HKEY hKey; in set_to_registry() local
95 &hKey, NULL)) != ERROR_SUCCESS) { in set_to_registry()
98 if (RegSetValueEx(hKey, value_name, 0, REG_SZ, name_buf, in set_to_registry()
100 RegCloseKey(hKey); in set_to_registry()
103 RegCloseKey(hKey); in set_to_registry()
122 HKEY hKey; in get_from_registry() local
126 &hKey) != ERROR_SUCCESS) in get_from_registry()
128 if (RegQueryValueEx(hKey, value_name, 0, 0, in get_from_registry()
131 RegCloseKey(hKey); in get_from_registry()
134 RegCloseKey(hKey); in get_from_registry()
H A Dinit_os_ctx.c110 HKEY hKey = 0; in get_from_registry() local
121 &hKey)) != ERROR_SUCCESS) { in get_from_registry()
125 rc = RegQueryValueEx(hKey, value_name, 0, 0, 0, &size); in get_from_registry()
135 if ((rc = RegQueryValueEx(hKey, value_name, 0, 0, *pbuffer, &size)) != in get_from_registry()
146 if (hKey) in get_from_registry()
147 RegCloseKey(hKey); in get_from_registry()
/src/contrib/libarchive/libarchive/
H A Darchive_cryptor.c206 BCRYPT_KEY_HANDLE hKey; in aes_ctr_init() local
214 ctx->hKey = NULL; in aes_ctr_init()
255 status = BCryptGenerateSymmetricKey(hAlg, &hKey, in aes_ctr_init()
265 ctx->hKey = hKey; in aes_ctr_init()
279 status = BCryptEncrypt(ctx->hKey, (PUCHAR)ctx->nonce, AES_BLOCK_SIZE, in aes_ctr_encrypt_counter()
292 BCryptDestroyKey(ctx->hKey); in aes_ctr_release()
293 ctx->hKey = NULL; in aes_ctr_release()
H A Darchive_cryptor_private.h78 BCRYPT_KEY_HANDLE hKey; member
/src/contrib/llvm-project/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp181 HKEY hKey = NULL; in getSystemRegistryString()
232 KEY_READ | KEY_WOW64_32KEY, &hKey); in getSystemRegistryString()
234 if (readFullStringValue(hKey, valueName, value)) { in getSystemRegistryString()
240 RegCloseKey(hKey); in getSystemRegistryString()
249 RegOpenKeyExA(hRootKey, keyPath, 0, KEY_READ | KEY_WOW64_32KEY, &hKey); in getSystemRegistryString()
251 if (readFullStringValue(hKey, valueName, value)) in getSystemRegistryString()
255 RegCloseKey(hKey); in getSystemRegistryString()
/src/crypto/heimdal/lib/hx509/
H A Dsoftp11.c1407 const CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey, in commonInit() argument
1414 if ((ret = object_handle_to_object(hKey, o)) != CKR_OK) in commonInit()
1466 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
1483 pMechanism, hKey, &o); in C_SignInit()
1599 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
1616 pMechanism, hKey, &o); in C_VerifyInit()
/src/crypto/krb5/src/lib/gssapi/mechglue/
H A Dg_initialize.c1381 getRegKeyValue(HKEY hKey, const char *keyPath, const char *valueName, in getRegKeyValue() argument
1387 if ((hr = RegGetValue(hKey, keyPath, valueName, RRF_RT_REG_SZ, NULL, in getRegKeyValue()
1403 if ((hr = RegGetValue(hKey, keyPath, valueName, RRF_RT_REG_SZ, NULL, in getRegKeyValue()
/src/crypto/krb5/src/lib/krb5/ccache/
H A Dcc_mslsa.c516 HKEY hKey; in get_STRING_from_registry() local
523 rc = RegOpenKeyExA(hBaseKey, key, 0, KEY_QUERY_VALUE, &hKey); in get_STRING_from_registry()
528 rc = RegQueryValueExA(hKey, value, 0, 0, (LPBYTE) outbuf, &dwCount); in get_STRING_from_registry()
529 RegCloseKey(hKey); in get_STRING_from_registry()