]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2006/04/20 09:27:09
authordjm <djm>
Sun, 23 Apr 2006 02:08:37 +0000 (02:08 +0000)
committerdjm <djm>
Sun, 23 Apr 2006 02:08:37 +0000 (02:08 +0000)
     [auth.h clientloop.c dispatch.c dispatch.h kex.h]
     replace the last non-sig_atomic_t flag used in a signal handler with a
     sig_atomic_t, unfortunately with some knock-on effects in other (non-
     signal) contexts in which it is used; ok markus@

ChangeLog
auth.h
clientloop.c
dispatch.c
dispatch.h
kex.h

index 1d7d817af730c7ed1008c6945c5bd25a99dcf8a4..771ae57de61a554e5ea792de12c157353010b853 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      that sftp and sftp-server (which use the Buffer functions in bufaux.c 
      but not the bignum ones) no longer need to be linked with libcrypto.
      ok markus@
+   - djm@cvs.openbsd.org 2006/04/20 09:27:09
+     [auth.h clientloop.c dispatch.c dispatch.h kex.h]
+     replace the last non-sig_atomic_t flag used in a signal handler with a
+     sig_atomic_t, unfortunately with some knock-on effects in other (non-
+     signal) contexts in which it is used; ok markus@
 
 20060421
  - (djm) [Makefile.in configure.ac session.c sshpty.c]
diff --git a/auth.h b/auth.h
index c69de34e5066ecf0859b3ca7735dd06069290695..adbfdd2e589ea3dfa0392d7c26feae5277aefa1b 100644 (file)
--- a/auth.h
+++ b/auth.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.h,v 1.52 2006/03/25 22:22:42 djm Exp $ */
+/* $OpenBSD: auth.h,v 1.53 2006/04/20 09:27:09 djm Exp $ */
 
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
@@ -48,7 +48,7 @@ typedef struct Authmethod Authmethod;
 typedef struct KbdintDevice KbdintDevice;
 
 struct Authctxt {
-       int              success;
+       sig_atomic_t     success;
        int              postponed;     /* authentication needs another step */
        int              valid;         /* user exists and is allowed to login */
        int              attempt;
index 7745c4dd88ff2544f9a7c785828d13ef0f70ffda..d317b79f4b33a3d710eacf745a7863c60f9fef70 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.161 2006/03/25 18:30:55 deraadt Exp $ */
+/* $OpenBSD: clientloop.c,v 1.162 2006/04/20 09:27:09 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -131,7 +131,7 @@ static volatile sig_atomic_t received_signal = 0;
 static int in_non_blocking_mode = 0;
 
 /* Common data for the client loop code. */
-static int quit_pending;       /* Set to non-zero to quit the client loop. */
+static volatile sig_atomic_t quit_pending; /* Set non-zero to quit the loop. */
 static int escape_char;                /* Escape character. */
 static int escape_pending;     /* Last character was the escape character */
 static int last_was_cr;                /* Last character was a newline. */
index eac07b1b3ce3d9fd3b3d0de6081fe9d757aea65d..4f965a62d5737896b57365e910db96728d1cdac7 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.18 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: dispatch.c,v 1.19 2006/04/20 09:27:09 djm Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -76,7 +76,7 @@ dispatch_set(int type, dispatch_fn *fn)
        dispatch[type] = fn;
 }
 void
-dispatch_run(int mode, int *done, void *ctxt)
+dispatch_run(int mode, volatile sig_atomic_t *done, void *ctxt)
 {
        for (;;) {
                int type;
index b33288f66333290cecdfee5dd2a69972c7a10587..4bca8a5a0f31b46ec470be86228b020bc35dc487 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.h,v 1.10 2006/03/25 22:22:43 djm Exp $ */
+/* $OpenBSD: dispatch.h,v 1.11 2006/04/20 09:27:09 djm Exp $ */
 
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
@@ -33,6 +33,6 @@ typedef void dispatch_fn(int, u_int32_t, void *);
 void    dispatch_init(dispatch_fn *);
 void    dispatch_set(int, dispatch_fn *);
 void    dispatch_range(u_int, u_int, dispatch_fn *);
-void    dispatch_run(int, int *, void *);
+void    dispatch_run(int, volatile sig_atomic_t *, void *);
 void    dispatch_protocol_error(int, u_int32_t, void *);
 void    dispatch_protocol_ignore(int, u_int32_t, void *);
diff --git a/kex.h b/kex.h
index 597b54810b5ff1afe58a5fc68a0aa4b4b1c0c979..137c3d8eb0bac23dfbe4d59fb18de6530ad61d93 100644 (file)
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.h,v 1.41 2006/03/25 22:22:43 djm Exp $ */
+/* $OpenBSD: kex.h,v 1.42 2006/04/20 09:27:09 djm Exp $ */
 
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
@@ -114,7 +114,7 @@ struct Kex {
        int     kex_type;
        Buffer  my;
        Buffer  peer;
-       int     done;
+       sig_atomic_t done;
        int     flags;
        const EVP_MD *evp_md;
        char    *client_version_string;
This page took 0.053906 seconds and 5 git commands to generate.