...
authorVolker Birk <vb@pep-project.org>
Wed, 22 Jun 2016 13:28:02 +0200
changeset 1216ee2155ec27a
parent 120 5adccc3e3d3c
child 123 6d311985ee41
...
GateKeeper.cpp
GateKeeper.h
     1.1 --- a/GateKeeper.cpp	Wed Jun 22 13:12:26 2016 +0200
     1.2 +++ b/GateKeeper.cpp	Wed Jun 22 13:28:02 2016 +0200
     1.3 @@ -140,7 +140,7 @@
     1.4          return hKey;
     1.5      }
     1.6  
     1.7 -    string GateKeeper::wrapped_delivery_key(BCRYPT_KEY_HANDLE hKey)
     1.8 +    string GateKeeper::wrapped_delivery_key(BCRYPT_KEY_HANDLE hDeliveryKey)
     1.9      {
    1.10          string result;
    1.11  
    1.12 @@ -154,7 +154,7 @@
    1.13  
    1.14          aeskey_t _delivery_key;
    1.15          ULONG copied;
    1.16 -        status = BCryptExportKey(delivery_key(), NULL, BCRYPT_KEY_DATA_BLOB, (PUCHAR) &_delivery_key, sizeof(aeskey_t), &copied, 0);
    1.17 +        status = BCryptExportKey(hDeliveryKey, NULL, BCRYPT_KEY_DATA_BLOB, (PUCHAR) &_delivery_key, sizeof(aeskey_t), &copied, 0);
    1.18          if (status)
    1.19              throw runtime_error("BCryptExportKey: delivery_key");
    1.20  
     2.1 --- a/GateKeeper.h	Wed Jun 22 13:12:26 2016 +0200
     2.2 +++ b/GateKeeper.h	Wed Jun 22 13:28:02 2016 +0200
     2.3 @@ -45,7 +45,7 @@
     2.4  
     2.5          string update_key();
     2.6          BCRYPT_KEY_HANDLE delivery_key();
     2.7 -        string wrapped_delivery_key(BCRYPT_KEY_HANDLE key);
     2.8 +        string wrapped_delivery_key(BCRYPT_KEY_HANDLE hDeliveryKey);
     2.9  
    2.10          void update_product(product p, DWORD context);
    2.11          product_list& registered_products();