Displaying 1 result from an estimated 1 matches for "pkalg_sep".
2001 Mar 11
0
patch to allow client to select rsa/dss
...c keys are obtained/verified.
--cut-here-
diff -c3 -r orig/openssh-2.5.1p1/key.c openssh-2.5.1p1/key.c
*** orig/openssh-2.5.1p1/key.c Mon Feb 5 18:16:28 2001
--- openssh-2.5.1p1/key.c Sun Mar 11 23:10:10 2001
***************
*** 534,539 ****
--- 534,567 ----
return KEY_UNSPEC;
}
+ #define PKALG_SEP ","
+ int
+ pkalg_valid(const char *names)
+ {
+ int k;
+ char *keys, *kp;
+ char *p;
+
+ if (names == NULL || strcmp(names, "") == 0)
+ return 0;
+ keys = kp = xstrdup(names);
+ for ((p = strsep(&kp, PKALG_SEP)); p && *p != '\0';
+ (p =...