Home | History | Annotate | Line # | Download | only in server
      1  1.1  christos #
      2  1.1  christos # To run the demo when linked with a shared library (default) ensure that
      3  1.1  christos # libcrypto and libssl are on the library path. For example:
      4  1.1  christos #
      5  1.1  christos #    LD_LIBRARY_PATH=../../.. ./server 4444 \
      6  1.1  christos #    	../../../test/certs/servercert.pem \
      7  1.1  christos #    	../../../test/certs/serverkey.pem
      8  1.1  christos #
      9  1.1  christos CFLAGS  += -I../../../include -g -Wall -Wsign-compare
     10  1.1  christos LDFLAGS += -L../../..
     11  1.1  christos LDLIBS  = -lcrypto -lssl
     12  1.1  christos 
     13  1.1  christos .PHONY: all server clean run s_client
     14  1.1  christos 
     15  1.1  christos all: server
     16  1.1  christos 
     17  1.1  christos server: server.c
     18  1.1  christos 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     19  1.1  christos 
     20  1.1  christos clean:
     21  1.1  christos 	$(RM) server *.o
     22  1.1  christos 
     23  1.1  christos run: server
     24  1.1  christos 	LD_LIBRARY_PATH=../../.. ./server 4444 \
     25  1.1  christos 	    ../../../test/certs/servercert.pem \
     26  1.1  christos 	    ../../../test/certs/serverkey.pem
     27  1.1  christos 
     28  1.1  christos s_client:
     29  1.1  christos 	LD_LIBRARY_PATH=../../.. ../../../apps/openssl \
     30  1.1  christos 	    s_client -quic -quiet -alpn ossltest -connect 127.0.0.1:4444 || true
     31