Matt Johnston
a7a67585cb
move GNU_SOURCE earlier
2020-06-23 22:24:58 +08:00
Matt Johnston
3f5c106a88
_GNU_SOURCE for random
2020-06-23 21:38:46 +08:00
Matt Johnston
89e98a2f83
Use Linux getrandom() to ensure random device is initialised
...
Remove old code warning about random device being not ready,
/dev/random isn't used by default anyway.
2020-05-28 22:50:41 +08:00
Matt Johnston
fa116e983b
Rename EPKA -> Plugin
2019-05-15 21:59:45 +08:00
fabriziobertocci
8c6aaf8d36
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 *
2019-05-15 21:43:57 +08:00
Matt Johnston
7e03e4d443
Remove incorrect _POSIX_C_SOURCE
2018-11-06 07:25:53 +08:00
Matt Johnston
02ffdd09dc
- Add adaptive authentication failure delay
...
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
2018-11-05 23:36:34 +08:00
Matt Johnston
5df73215f8
merge from main
...
--HG--
branch : fuzz
2018-02-26 22:44:48 +08:00
Matt Johnston
802dace05e
include config.h for options.h. don't need to include options.h when
...
includes.h brings it in
2018-02-18 11:22:13 +08:00
Matt Johnston
5ac4a71000
merge from main
...
--HG--
branch : fuzz
2017-06-24 00:47:07 +08:00
Matt Johnston
24b446705b
test for linux/pkt-sched.h rather than SO_PRIORITY
2017-06-23 23:36:33 +08:00
Matt Johnston
a43b6b0323
define SIZE_T_MAX
...
--HG--
branch : fuzz
2017-05-22 22:09:46 +08:00
Matt Johnston
fdc6f32392
closer to working
...
--HG--
branch : fuzz
2017-05-20 13:23:16 +08:00
Matt Johnston
9f24cdf74c
copy over some fuzzing code from AFL branch
...
--HG--
branch : fuzz
2017-05-12 23:14:54 +08:00
Thorsten Horstmann
fdb7ffa864
DROPBEAR_ prefix for include guards to avoid collisions
2015-02-24 20:43:01 +08:00
Steve Dover
47f7272ba1
Add linux/types.h to includes to avoid missing ___u64 etc
2014-02-17 22:05:59 +08:00
Catalin Patulea
ddc10b2d0c
Set IPTOS_LOWDELAY on PTY sessions only
2013-12-02 22:55:43 +08:00
Matt Johnston
a65f84db38
- Some fixes for old compilers like tru64 v4 from Daniel Richard G.
...
- Don't warn about blocking random device for prngd
2013-11-14 21:36:45 +08:00
Matt Johnston
f6b304250b
Try using writev() for writing packets out to tcp
2013-03-31 23:15:35 +08:00
Matt Johnston
4d050c34cb
Use system libtomcrypt/libtommath if available. Doesn't currently
...
build due to clash in rsa_key identifier.
--HG--
extra : convert_revision : c9a4726d1c89e17ee8e96801d1aaa8049216aae1
2010-07-21 12:38:46 +00:00
Matt Johnston
75ec4d6510
- Add -K keepalive flag for dropbear and dbclient
...
- Try to reduce the frequency of select() timeouts
- Add a max receive window size of 1MB
--HG--
extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
2007-08-08 15:12:06 +00:00
Matt Johnston
47e76de56a
Disable core dumps
...
--HG--
extra : convert_revision : ba8ebf724630561c6b9285247be7574a33853a17
2007-02-12 10:43:44 +00:00
Matt Johnston
d5897b9a5d
merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'
...
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec'
--HG--
extra : convert_revision : e84f66826c7ee6ebe99ef92cc0f6c22ecf638d01
2006-12-06 13:11:41 +00:00
Matt Johnston
7b780efb42
- Include netinet/in.h before arpa/inet.h for FreeBSD
...
- Update Copyright year
--HG--
extra : convert_revision : 182c2d8dbd5321ef4d1df8758936f4dc7127015f
2006-12-06 13:09:32 +00:00
Matt Johnston
ac2b546a13
Another stab at getting ss_family happy on older glibc
...
--HG--
extra : convert_revision : 7a1e9b08a576d794c28275e1bf54cb603372a4a6
2006-06-12 15:57:14 +00:00
Matt Johnston
9a07b93cb3
* workaround for systems such as glibc 2.1 that have
...
sockaddr_storage.__ss_family rather than sockaddr_storage.ss_family
--HG--
extra : convert_revision : 702c67055040d451a946e8c6aadbb6f7af1d3999
2005-12-06 17:49:59 +00:00
Matt Johnston
f1d36b1970
* include netinet/in_systm.h if available before netinet/ip.h, since
...
netbsd seems to require it for some reason. hooray for many unices.
--HG--
extra : convert_revision : 762eefb16551bf355cbaffb85453a34221c7a2ff
2005-10-31 07:49:57 +00:00
Matt Johnston
a2d343b108
- new function to set "low delay" for a packet, set the ip TOS bit
...
(can help significantly over some links)
--HG--
extra : convert_revision : 685c1004b66533aebbd45810533de698a786a4ea
2005-09-21 15:58:19 +00:00
Matt Johnston
7b403dc57f
Switching to libtomcrypt 1.02
...
(still has problems)
--HG--
extra : convert_revision : 4dfd70544ed9a766876ddda9f6ac3f26054eb3db
2005-05-09 09:32:33 +00:00
Matt Johnston
8b32e8a08c
includes.h: include mycrypt.h rather than mycrypt_custom.h
...
--HG--
extra : convert_revision : 63ea0f9a911a31bd88913afdfc31582240b0acfb
2004-12-19 16:28:08 +00:00
Matt Johnston
51a74b4799
- added circular buffering for channels
...
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
--HG--
extra : convert_revision : 5bdf806d8b440c87f7235414662f4189195618f4
2004-08-26 13:16:40 +00:00
Matt Johnston
8e1ec24f55
Merging in the changes from 0.41-0.43 main Dropbear tree
...
--HG--
extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
2004-08-12 16:41:58 +00:00
Matt Johnston
96a0f77bb4
fake-rfc stuff
...
--HG--
extra : convert_revision : 796008def04e47dc990703134c9fe013f1919190
2004-08-12 14:39:17 +00:00
Matt Johnston
674a607488
Makefile.in contains updated files required
...
--HG--
extra : convert_revision : cc8a8c49dc70e632c352853a39801089b08149be
2004-06-01 02:46:09 +00:00