Displaying 1 result from an estimated 1 matches for "get_passphrase_from_keychain".
2004 Jan 06
1
Keychain Patch Try II
...kpass = NULL, *ret, buf[1024];
  	int rppflags, use_askpass = 0, ttyfd;
  	rppflags = (flags & RP_ECHO) ? RPP_ECHO_ON : RPP_ECHO_OFF;
@@ -126,60 +126,13 @@
  		return ret;
  	}
-	/* Before reading the passphrase from the user, find it in the
-	   keychain. */
-#ifdef USE_KEYCHAIN
-        if (get_passphrase_from_keychain(prompt, buf, sizeof buf) == 
0) {
-	  /* We got the password; do nothing now that it's in buf */
-	} else {
-#endif /* USE_KEYCHAIN */
-	  if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL) {
-	    if (flags & RP_ALLOW_EOF)
-	      return NULL;
-	    return xstrdup("")...