diff options
author | 1999-10-01 01:08:28 +0000 | |
---|---|---|
committer | 1999-10-01 01:08:28 +0000 | |
commit | 9186b70c618b4775fe2a79b1fada2ad20abcaf4e (patch) | |
tree | 70dca6164d7b91778a9b9993c1fb66d527166d99 /lib/libkeynote/keynote-sign.c | |
parent | Sync w/NetBSD. Add support for ES18[67][89] - Nonaka Kimihiro + muting control fix (diff) | |
download | wireguard-openbsd-9186b70c618b4775fe2a79b1fada2ad20abcaf4e.tar.xz wireguard-openbsd-9186b70c618b4775fe2a79b1fada2ad20abcaf4e.zip |
Update for version 2.0
Diffstat (limited to 'lib/libkeynote/keynote-sign.c')
-rw-r--r-- | lib/libkeynote/keynote-sign.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/lib/libkeynote/keynote-sign.c b/lib/libkeynote/keynote-sign.c index 37fb931a4ec..a8329444c29 100644 --- a/lib/libkeynote/keynote-sign.c +++ b/lib/libkeynote/keynote-sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote-sign.c,v 1.5 1999/05/31 20:09:59 angelos Exp $ */ +/* $OpenBSD: keynote-sign.c,v 1.6 1999/10/01 01:08:30 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -19,20 +19,29 @@ * PURPOSE. */ +#if HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> -#include <string.h> #include <stdio.h> -#include <fcntl.h> #include <ctype.h> -#ifdef WIN32 -#include <ctype.h> +#if STDC_HEADERS +#include <string.h> +#endif /* STDC_HEADERS */ + +#if HAVE_FCNTL_H +#include <fcntl.h> +#endif /* HAVE_FCNTL_H */ + +#if HAVE_IO_H #include <io.h> -#else /* WIN32 */ +#elif HAVE_UNISTD_H #include <unistd.h> -#endif /* WIN32 */ +#endif /* HAVE_IO_H */ #include "keynote.h" #include "header.h" @@ -45,11 +54,7 @@ signusage(void) "<PrivateKeyFile>\n"); } -#ifdef WIN32 void -#else /* WIN32 */ -int -#endif /* WIN32 */ keynote_sign(int argc, char *argv[]) { int begin = SIG_PRINT_OFFSET, prlen = SIG_PRINT_LENGTH; |