aboutsummaryrefslogtreecommitdiff
path: root/openssl/tests/Makefile
blob: 4e38c699079c4f1fb36384fa7f737eff330f02ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id$

OPENSSL_DIR = ../openssl

CFLAGS = -g -I${OPENSSL_DIR}/include

# -H -Wl,-t

BIN = resource-set-test
OBJ = resource-set-test.o
LIB = ${OPENSSL_DIR}/libcrypto.a

all: ${BIN}

clean:
	rm -f ${BIN} ${OBJ}

${BIN}: ${OBJ} ${LIB} Makefile
	${CC} -g -o $@ ${OBJ} ${LIB}

# This test needs more work

test: ${BIN} test.cer
	./${BIN} -v -a AS:17 -i IPv4:10.0.0.44 -d test.cer

test.cer: test.conf
	${OPENSSL_DIR}/apps/openssl req -new -x509 -config test.conf -keyout test.key -out test.cer -outform DER

distclean: clean
	rm -f test.key test.cer