Displaying 1 result from an estimated 1 matches for "valid_secret_p".
2001 Jun 06
0
snk authentication
..._encrypt((des_cblock *)kbuf, (des_cblock *)data, 16l,
+ keysched, &iv, DES_ENCRYPT);
+ j = reslen - 6;
+ if( j > 0){
+ i = (j+7)& 0xf8;
+ des_cbc_encrypt((des_cblock *)&res[6], (des_cblock *)&data[16],
+ i*1l, keysched, &iv, DES_ENCRYPT);
+ }
+ return 0;
+}
+
+
+int valid_secret_p (char *s) {
+ int x, y;
+ x = sscanf(s, "%o %o %o %o %o %o %o %o",
+ &y, &y, &y, &y, &y, &y, &y, &y);
+ return x == 8;
+}
diff -NuBw openssh-2.9p1/snk.h openssh/snk.h
--- openssh-2.9p1/snk.h Wed Dec 31 19:00:00 1969
+++ openssh/snk.h Wed Jun 6 15:5...