summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-12-06 18:00:18 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-12-06 18:00:18 +0000
commit1c37c6a51842f8bed3283ef18ec16cf6a0ae8640 (patch)
treee17ea7a703397ef0b7f7c76d668bb5ac0d4f4fec /sshconnect2.c
parent3c36bb29ca67d459ef9d8c1961415d77efc20e55 (diff)
- deraadt@cvs.openbsd.org 2001/12/05 10:06:12
[authfd.c authfile.c bufaux.c channels.c compat.c kex.c kexgex.c key.c misc.c packet.c servconf.c ssh-agent.c sshconnect2.c sshconnect.c sshd.c ssh-dss.c ssh-keygen.c ssh-rsa.c] minor KNF
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index bb062939a..514637f2d 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.86 2001/12/05 03:56:39 itojun Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.87 2001/12/05 10:06:13 deraadt Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -407,7 +407,7 @@ input_userauth_pk_ok(int type, int plen, void *ctxt)
407 } 407 }
408 sent = sign_and_send_pubkey(authctxt, key, 408 sent = sign_and_send_pubkey(authctxt, key,
409 authctxt->last_key_sign); 409 authctxt->last_key_sign);
410 } while(0); 410 } while (0);
411 411
412 if (key != NULL) 412 if (key != NULL)
413 key_free(key); 413 key_free(key);
@@ -446,7 +446,7 @@ userauth_passwd(Authctxt *authctxt)
446 if (attempt++ >= options.number_of_password_prompts) 446 if (attempt++ >= options.number_of_password_prompts)
447 return 0; 447 return 0;
448 448
449 if(attempt != 1) 449 if (attempt != 1)
450 error("Permission denied, please try again."); 450 error("Permission denied, please try again.");
451 451
452 snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ", 452 snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ",
@@ -710,7 +710,7 @@ userauth_pubkey(Authctxt *authctxt)
710 if (authctxt->agent != NULL) { 710 if (authctxt->agent != NULL) {
711 do { 711 do {
712 sent = userauth_pubkey_agent(authctxt); 712 sent = userauth_pubkey_agent(authctxt);
713 } while(!sent && authctxt->agent->howmany > 0); 713 } while (!sent && authctxt->agent->howmany > 0);
714 } 714 }
715 while (!sent && idx < options.num_identity_files) { 715 while (!sent && idx < options.num_identity_files) {
716 key = options.identity_keys[idx]; 716 key = options.identity_keys[idx];