comparison Makefile.in @ 1653:76189c9ffea2

External Public-Key Authentication API (#72) * Implemented dynamic loading of an external plug-in shared library to delegate public key authentication * Moved conditional compilation of the plugin infrastructure into the configure.ac script to be able to add -ldl to dropbear build only when the flag is enabled * Added tags file to the ignore list * Updated API to have the constructor to return function pointers in the pliugin instance. Added support for passing user name to the checkpubkey function. Added options to the session returned by the plugin and have dropbear to parse and process them * Added -rdynamic to the linker flags when EPKA is enabled * Changed the API to pass a previously created session to the checkPubKey function (created during preauth) * Added documentation to the API * Added parameter addrstring to plugin creation function * Modified the API to retrieve the auth options. Instead of having them as field of the EPKASession struct, they are stored internally (plugin-dependent) in the plugin/session and retrieved through a pointer to a function (in the session) * Changed option string to be a simple char * instead of unsigned char *
author fabriziobertocci <fabriziobertocci@gmail.com>
date Wed, 15 May 2019 09:43:57 -0400
parents b794d277c6da
children cc0fc5131c5c
comparison
equal deleted inserted replaced
1652:d2753238f35f 1653:76189c9ffea2
78 dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS) 78 dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
79 dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS) 79 dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
80 scpobjs=$(SCPOBJS) 80 scpobjs=$(SCPOBJS)
81 endif 81 endif
82 82
83 ifeq (@DROPBEAR_EPKA@, 1)
84 # rdynamic makes all the global symbols of dropbear available to all the loaded shared libraries
85 # this allow a plugin to reuse existing crypto/utilities like base64_decode/base64_encode without
86 # the need to rewrite them.
87 EPKA_LIBS=-ldl -rdynamic
88 else
89 EPKA_LIBS=
90 endif
91
83 VPATH=@srcdir@ 92 VPATH=@srcdir@
84 srcdir=@srcdir@ 93 srcdir=@srcdir@
85 94
86 prefix=@prefix@ 95 prefix=@prefix@
87 exec_prefix=@exec_prefix@ 96 exec_prefix=@exec_prefix@
187 dbclient: $(dbclientobjs) 196 dbclient: $(dbclientobjs)
188 dropbearkey: $(dropbearkeyobjs) 197 dropbearkey: $(dropbearkeyobjs)
189 dropbearconvert: $(dropbearconvertobjs) 198 dropbearconvert: $(dropbearconvertobjs)
190 199
191 dropbear: $(HEADERS) $(LIBTOM_DEPS) Makefile 200 dropbear: $(HEADERS) $(LIBTOM_DEPS) Makefile
192 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS) @CRYPTLIB@ 201 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS) @CRYPTLIB@ $(EPKA_LIBS)
193 202
194 dbclient: $(HEADERS) $(LIBTOM_DEPS) Makefile 203 dbclient: $(HEADERS) $(LIBTOM_DEPS) Makefile
195 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS) 204 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS)
196 205
197 dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile 206 dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile