X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/SecurityTests/clxutils/p12/p12GetPassKey.cpp?ds=sidebyside diff --git a/SecurityTests/clxutils/p12/p12GetPassKey.cpp b/SecurityTests/clxutils/p12/p12GetPassKey.cpp deleted file mode 100644 index 59ae25c9..00000000 --- a/SecurityTests/clxutils/p12/p12GetPassKey.cpp +++ /dev/null @@ -1,132 +0,0 @@ -/* - * p12GetPassKey.h - get a CSSM_ALGID_SECURE_PASSPHRASE key for encode/decode - */ - -#include -#include -#include "p12GetPassKey.h" -#include -#include -#include - -/* when true, simulate secure passphrase in CSPDL */ -#define SIMULATE_PASSPHRASE 1 - -/* - * Safe gets(). - * -- guaranteed no buffer overflow - * -- guaranteed NULL-terminated string - * -- handles empty string (i.e., response is just CR) properly - */ -void getString( - char *buf, - unsigned bufSize) -{ - unsigned dex; - char c; - char *cp = buf; - - for(dex=0; dex