COM-121
Volker Birk 7 years ago
parent 31175afa0b
commit 94b9b5c89b
  1. 4
      GateKeeper.cpp
  2. 2
      GateKeeper.h

@ -140,7 +140,7 @@ namespace pEp {
return hKey;
}
string GateKeeper::wrapped_delivery_key(BCRYPT_KEY_HANDLE hKey)
string GateKeeper::wrapped_delivery_key(BCRYPT_KEY_HANDLE hDeliveryKey)
{
string result;
@ -154,7 +154,7 @@ namespace pEp {
aeskey_t _delivery_key;
ULONG copied;
status = BCryptExportKey(delivery_key(), NULL, BCRYPT_KEY_DATA_BLOB, (PUCHAR) &_delivery_key, sizeof(aeskey_t), &copied, 0);
status = BCryptExportKey(hDeliveryKey, NULL, BCRYPT_KEY_DATA_BLOB, (PUCHAR) &_delivery_key, sizeof(aeskey_t), &copied, 0);
if (status)
throw runtime_error("BCryptExportKey: delivery_key");

@ -45,7 +45,7 @@ namespace pEp {
string update_key();
BCRYPT_KEY_HANDLE delivery_key();
string wrapped_delivery_key(BCRYPT_KEY_HANDLE key);
string wrapped_delivery_key(BCRYPT_KEY_HANDLE hDeliveryKey);
void update_product(product p, DWORD context);
product_list& registered_products();

Loading…
Cancel
Save