X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=demos%2Fmaurice%2FMakefile;h=f9bf62276e83ad2bba25c0b2450efa613041c1d3;hp=fa67dcca81bfb0bda63cc7aa86ea882c29e394f7;hb=5c3598307ebbf5a88d1c39fbb2629536e443a5dd;hpb=d02b48c63a58ea4367a0e905979f140b7d090f86 diff --git a/demos/maurice/Makefile b/demos/maurice/Makefile index fa67dcca81..f9bf62276e 100644 --- a/demos/maurice/Makefile +++ b/demos/maurice/Makefile @@ -1,6 +1,6 @@ CC=cc -CFLAGS= -g -I../../include -LIBS= -L/usr/local/ssl/lib -L../.. -lcrypto +CFLAGS= -g -I../../include -Wall +LIBS= -L../.. -lcrypto EXAMPLES=example1 example2 example3 example4 all: $(EXAMPLES) @@ -17,7 +17,43 @@ example3: example3.o example4: example4.o $(CC) -o example4 example4.o $(LIBS) - clean: rm -f $(EXAMPLES) *.o +test: all + @echo + @echo Example 1 Demonstrates the sealing and opening APIs + @echo Doing the encrypt side... + ./example1 t.t + @echo Doing the decrypt side... + ./example1 -d t.2 + diff t.2 README + rm -f t.t t.2 + @echo example1 is OK + + @echo + @echo Example2 Demonstrates rsa encryption and decryption + @echo and it should just print \"This the clear text\" + ./example2 + + @echo + @echo Example3 Demonstrates the use of symmetric block ciphers + @echo in this case it uses EVP_des_ede3_cbc + @echo i.e. triple DES in Cipher Block Chaining mode + @echo Doing the encrypt side... + ./example3 ThisIsThePassword t.t + @echo Doing the decrypt side... + ./example3 -d ThisIsThePassword t.2 + diff t.2 README + rm -f t.t t.2 + @echo example3 is OK + + @echo + @echo Example4 Demonstrates base64 encoding and decoding + @echo Doing the encrypt side... + ./example4 t.t + @echo Doing the decrypt side... + ./example4 -d t.2 + diff t.2 README + rm -f t.t t.2 + @echo example4 is OK