We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f521d9d commit 344e5e0Copy full SHA for 344e5e0
1 file changed
src/clevisDecrypt.h
@@ -45,7 +45,7 @@ namespace binding {
45
46
std::string ancillary() const; // The 'neanc' field of the protected header as a string
47
std::string recoveryUrl(bool full = true) const; // The complete URL needed to access the tang rec api, including the kid and query string
48
- std::string kid() const { return json_string_value(checker.getKid()); }; // The key ID
+ std::string kid() const { if(checker.getKid() != nullptr) return json_string_value(checker.getKid()); return ""; }; // The key ID
49
std::string transportKey() const; // This is the payload of the POST request sent as the rec api call to tang
50
returnWithStatus_t unSealSecret(const std::string responseFromTang); // The tang interaction on JS side provides the reply here
51
0 commit comments