Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Changes persistence level to 'enterprise' on Windows #191

Merged
merged 1 commit into from
Jul 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/keytar_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ KEYTAR_OP_RESULT SetPassword(const std::string& service,
cred.UserName = user_name;
cred.CredentialBlobSize = password.size();
cred.CredentialBlob = (LPBYTE)(password.data());
cred.Persist = CRED_PERSIST_LOCAL_MACHINE;
cred.Persist = CRED_PERSIST_ENTERPRISE;

bool result = ::CredWrite(&cred, 0);
delete[] target_name;
Expand Down