blob: 5ab8d7f5be1384cadd8a911f9bc3adc263c5acd2 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# $NetBSD: Makefile,v 1.10 2023/05/13 13:04:03 riastradh Exp $
NOLINT=
.include <bsd.own.mk>
.include <bsd.init.mk>
.PATH: ${DIST}/src ${DIST}/man ${DIST}/openbsd-compat
CPPFLAGS+= -D_FIDO_INTERNAL -I${DIST}/src
LDADD+=-lusbhid -lcbor -lz
DPADD+=${LIBUSBHID} ${LIBCBOR} ${LIBZ}
LDFLAGS+=-Wl,--version-script=${DIST}/src/export.gnu
LIB= fido2
SRCS+= \
aes256.c \
assert.c \
authkey.c \
bio.c \
blob.c \
buf.c \
cbor.c \
compress.c \
config.c \
cred.c \
credman.c \
dev.c \
ecdh.c \
eddsa.c \
err.c \
es256.c \
hid.c \
hid_netbsd.c \
hid_unix.c \
info.c \
io.c \
iso7816.c \
largeblob.c \
log.c \
pin.c \
random.c \
reset.c \
rs256.c \
u2f.c
SRCS+= \
explicit_bzero.c \
freezero.c \
recallocarray.c \
timingsafe_bcmp.c
INCS+= \
fido.h \
fido/bio.h \
fido/config.h \
fido/credman.h \
fido/eddsa.h \
fido/err.h \
fido/es256.h \
fido/param.h \
fido/rs256.h \
fido/types.h
INCSDIR=/usr/include
MAN+= \
eddsa_pk_new.3 \
es256_pk_new.3 \
fido_assert_allow_cred.3 \
fido_assert_new.3 \
fido_assert_set_authdata.3 \
fido_assert_verify.3 \
fido_bio_dev_get_info.3 \
fido_bio_enroll_new.3 \
fido_bio_info_new.3 \
fido_bio_template.3 \
fido_cbor_info_new.3 \
fido_cred_exclude.3 \
fido_cred_new.3 \
fido_cred_set_authdata.3 \
fido_cred_verify.3 \
fido_credman_metadata_new.3 \
fido_dev_enable_entattest.3 \
fido_dev_get_assert.3 \
fido_dev_get_touch_begin.3 \
fido_dev_info_manifest.3 \
fido_dev_largeblob_get.3 \
fido_dev_make_cred.3 \
fido_dev_open.3 \
fido_dev_set_io_functions.3 \
fido_dev_set_pin.3 \
fido_init.3 \
fido_strerr.3 \
rs256_pk_new.3
SHLIB_MAJOR=4
SHLIB_MINOR=0
.SUFFIXES: .in
.in:
${TOOL_SED} \
-e s%@CMAKE_INSTALL_PREFIX@%/usr% \
-e s%@CMAKE_INSTALL_LIBDIR@%lib% \
-e s%@PROJECT_NAME@%libfido2% \
-e s%@FIDO_VERSION@%${FIDO_VERSION}% \
< ${.ALLSRC} > ${.TARGET}
FILESDIR=/usr/lib/pkgconfig
FILES+=libfido2.pc
FILESBUILD_libfido2.pc=yes
COPTS.assert.c+=-Wno-error=deprecated-declarations
COPTS.cbor.c+=-Wno-error=deprecated-declarations
COPTS.cred.c+=-Wno-error=deprecated-declarations
COPTS.ecdh.c+=-Wno-error=deprecated-declarations
COPTS.ecdh.c+=-Wno-error=pointer-sign
COPTS.es256.c+=-Wno-error=deprecated-declarations
COPTS.rs256.c+=-Wno-error=deprecated-declarations
.include <bsd.lib.mk>
|