#define APPNAME "Pageant"
-extern char ver[];
+extern const char ver[];
static HWND keylist;
static HWND aboutbox;
switch (msg) {
case WM_INITDIALOG:
{
+ char *buildinfo_text = buildinfo("\r\n");
char *text = dupprintf
- ("Pageant\r\n\r\n%s\r\n\r\n%s",
- ver,
+ ("Pageant\r\n\r\n%s\r\n\r\n%s\r\n\r\n%s",
+ ver, buildinfo_text,
"\251 " SHORT_COPYRIGHT_DETAILS ". All rights reserved.");
+ sfree(buildinfo_text);
SetDlgItemText(hwnd, 1000, text);
sfree(text);
}
int argc, i;
char **argv, **argstart;
+ dll_hijacking_protection();
+
hinst = inst;
hwnd = NULL;
if (!strcmp(argv[i], "-pgpfp")) {
pgp_fingerprints();
return 1;
+ } else if (!strcmp(argv[i], "-restrict-acl") ||
+ !strcmp(argv[i], "-restrict_acl") ||
+ !strcmp(argv[i], "-restrictacl")) {
+ restrict_process_acl();
} else if (!strcmp(argv[i], "-c")) {
/*
* If we see `-c', then the rest of the
}
}
-#ifndef UNPROTECT
- /*
- * Protect our process.
- */
- {
- char *error = NULL;
- if (!setprocessacl(error)) {
- char *message = dupprintf("Could not restrict process ACL: %s",
- error);
- MessageBox(NULL, message, "Pageant Warning",
- MB_ICONWARNING | MB_OK);
- sfree(message);
- sfree(error);
- }
- }
-#endif
-
/*
* Forget any passphrase that we retained while going over
* command line keyfiles.