diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-27 23:52:31 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-27 23:52:31 +0000 |
commit | 71f080935a50c3fd795f0c3ccb6ee0dd7c453de1 (patch) | |
tree | f77d763433b57eb64f6d445d5faba2913497de9f /demos/sign | |
parent | e95f626827bf98fe0c0b792464202d325f4cf8b9 (diff) | |
download | openssl-new-71f080935a50c3fd795f0c3ccb6ee0dd7c453de1.tar.gz |
Updated some demos.
Submitted by: Sean O Riordain <Sean.ORiordain@cyrona.com>
Diffstat (limited to 'demos/sign')
-rw-r--r-- | demos/sign/Makefile | 15 | ||||
-rw-r--r-- | demos/sign/sign.c | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/demos/sign/Makefile b/demos/sign/Makefile new file mode 100644 index 0000000000..e6d391e4ad --- /dev/null +++ b/demos/sign/Makefile @@ -0,0 +1,15 @@ +CC=cc +CFLAGS= -g -I../../include -Wall +LIBS= -L../.. -lcrypto +EXAMPLES=sign + +all: $(EXAMPLES) + +sign: sign.o + $(CC) -o sign sign.o $(LIBS) + +clean: + rm -f $(EXAMPLES) *.o + +test: all + ./sign diff --git a/demos/sign/sign.c b/demos/sign/sign.c index 946c29c45e..64e72e7194 100644 --- a/demos/sign/sign.c +++ b/demos/sign/sign.c @@ -70,7 +70,7 @@ #include <openssl/pem.h> #include <openssl/ssl.h> -void main () +int main () { int err; int sig_len; @@ -134,4 +134,5 @@ void main () if (err != 1) { ERR_print_errors_fp (stderr); exit (1); } EVP_PKEY_free (pkey); printf ("Signature Verified Ok.\n"); + return(0); } |