pkgsrc/security/sbd/patches/patch-aa
agc 0ac665d99b Initial import of sbd-0.5 into the Packages Collection.
One-time cipher based back door program for executing emergency
	commands.

	Secure Back Door(SBD) is an alternative to leaving SSH open all the
	time.  It is based on a secure one-time keypad method, that insures
	maximum security.  Since SBD is very small, it is less likely to have
	security exploits, as compared to SSH.  Therefore, you could leave an
	important computer up and running with just sbdd running in the
	background, and if an emergency came about, you could simple execute a
	command to bring ssh up, then work on the computer as regular.  It
	would be as simple as doing ./sbd domain.com "/etc/init.d/sshd start",
	and with the proper key file set, the remote computer would have ssh
	up and running shortly.
2007-05-10 18:18:16 +00:00

22 lines
742 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2007/05/10 18:18:16 agc Exp $
--- sbd.cpp 2007/05/10 09:59:22 1.1
+++ sbd.cpp 2007/05/10 10:00:30
@@ -121,7 +121,7 @@
// We always assume server recieved the command ok
// truncate file so same bytes are not used
- truncateFile("enckey.bits", keyBytesUsed);
+ truncateFile(PKG_SYSCONFDIR "/" "enckey.bits", keyBytesUsed);
return 0;
}
@@ -136,7 +136,7 @@
eMsg=""; // Finished cypher text
// get key bytes from file
- readKey("enckey.bits", key, SHA1_SIZE*2 + msg.size());
+ readKey(PKG_SYSCONFDIR "/" "enckey.bits", key, SHA1_SIZE*2 + msg.size());
// Copy 20 bytes of key over to hashOTP for computing HMAC-SHA1
for (i = 0; i < SHA1_SIZE; i++)