Skip to content

Commit 77d58f2

Browse files
Public keyfile copied over, updated todo.txt
1 parent f09fec6 commit 77d58f2

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

USBProtection.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,13 @@ void GenerateSignature(RSA*& keypair, string* signatureInfo, string folderPath)
475475
f << (signatureInfo[2] + "\n");
476476
f << (signatureInfo[3] + "\n");
477477
f << signature;
478-
478+
479479
f.close();
480480

481+
//Creating a copy of the public key in the USB section - this will be used for the logs
482+
FILE* privateKeyFile = fopen((folderPath + "/public.pem").c_str(), "w");
483+
PEM_write_RSAPrivateKey(privateKeyFile, keypair, NULL, NULL, 0, NULL, NULL);
484+
fclose(privateKeyFile);
481485
}
482486

483487
//Windows stuff

todo.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
- All USBs should be detected upon entry
2-
- USBs should be uniquely identified and automatically disconnected if not whitelisted
3-
- USBs hold full transaction history encrypted on them - only the "owners" can access this history
4-
- Whitelist can be written in a pseudoenglish style and parsed like a programming language
5-
- CLI
1+
- Allow to actually request / deny based on policy
2+
- Log changes in a USB log file
3+
- Read the log in boot mode 2
4+
- Clean up output

0 commit comments

Comments
 (0)