e4e4733fc482f59ff43933e794eeb37109ef641b
[dragonfly.git] / lib / libssh / Makefile
1 LIB=    private_ssh
2 SHLIB_MAJOR= 4
3 PRIVATELIB=
4
5 SRCS=   addrmatch.c atomicio.c authfd.c authfile.c bitmap.c canohost.c \
6         chacha.c channels.c cipher.c cipher-chachapoly.c cleanup.c compat.c \
7         dh.c digest-openssl.c dispatch.c dns.c entropy.c fatal.c \
8         hash.c hmac.c hostfile.c \
9         krl.c log.c mac.c match.c misc.c moduli.c monitor_fdpass.c msg.c \
10         nchan.c packet.c platform-misc.c poly1305.c readpass.c \
11         ssh_api.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c ssh-rsa.c \
12         sshbuf.c sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c \
13         ssherr.c sshkey.c ttymodes.c \
14         umac.c umac128.c utf8.c uuencode.c verify.c xmalloc.c
15 SRCS+=  ed25519.c fe25519.c ge25519.c sc25519.c smult_curve25519_ref.c
16 SRCS+=  kex.c kexc25519.c kexdh.c kexecdh.c \
17         kexgen.c kexgex.c kexgexc.c kexgexs.c \
18         kexsntrup4591761x25519.c sntrup4591761.c
19
20 # not implemented: platform-pledge.c platform-tracing.c
21 # only for scp/sftp: progressmeter.c
22 # disabled: ssh-pkcs11.c
23 # no GSSAPI: gss-genr.c
24 # no openssl: cipher-aes.c cipher-aesctr.c cipher-ctr.c crc32.c digest-libc.c rijndael.c
25 # no xmss: ssh-xmss.c sshkey-xmss.c xmss_commons.c xmss_fast.c xmss_hash.c
26 #          xmss_hash_address.c xmss_wots.c
27
28 # Portability layer
29 .PATH: ${.CURDIR}/openbsd-compat
30 SRCS+=  bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c fmt_scaled.c \
31         glob.c openssl-compat.c port-net.c realpath.c xcrypt.c
32 SRCS+=  getrrsetbyname.c
33 # XXX needs to link libldns, use simple version for now
34 #SRCS+= getrrsetbyname-ldns.c
35
36 # not needed compat:
37 # arc4random.c base64.c basename.c bindresvport.c bsd-asprintf.c
38 # bsd-closefrom.c bsd-cygwin_util.c bsd-err.c bsd-flock.c bsd-getline.c
39 # bsd-getpagesize.c bsd-getpeereid.c bsd-malloc.c bsd-nextstep.c bsd-openpty.c
40 # bsd-poll.c bsd-setres_id.c bsd-snprintf.c bsd-statvfs.c bsd-waitpid.c
41 # daemon.c dirname.c explicit_bzero.c fake-rfc2553.c freezero.c getcwd.c
42 # getgrouplist.c getopt_long.c inet_aton.c inet_ntoa.c inet_ntop.c
43 # kludge-fd_set.c libressl-api-compat.c md5.c mktemp.c
44 # port-aix.c port-irix.c port-linux.c port-solaris.c port-uw.c
45 # pwcache.c readpassphrase.c reallocarray.c recallocarray.c rmd160.c
46 # rresvport.c setenv.c setproctitle.c sha1.c sha2.c sigact.c
47 # strcasestr.c strlcat.c strlcpy.c strmode.c strndup.c strnlen.c strptime.c
48 # strsep.c strtoll.c strtonum.c strtoul.c strtoull.c timingsafe_bcmp.c vis.c
49
50 MAN=    moduli.5
51
52 WARNS?= 2
53 NO_STRICT_ALIASING=
54
55 .include "../../Makefile.ssh.common"
56 .include <bsd.lib.mk>