summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Make warning about failing IPV6_V6ONLY info level.Linus Nordberg2017-08-011-1/+1
| | | | | | We might have a bug where bindtoaddr() tries to set V6ONLY on IPv4 sockets. Until that's been resolved, don't alarm users on debug level 'warning'.
* Verify return code from fcntl calls.Linus Nordberg2017-08-011-2/+10
| | | | | | | Have connectnonblocking() warn and fail if setting O_NONBLOCK fails. Have it warn if restoring of flags fail. coverity: 1449515
* Don't use 'out' if malloc fails.Linus Nordberg2017-08-011-8/+8
| | | | coverity: 1449518
* Check return value from setsockopt().Linus Nordberg2017-08-011-2/+4
| | | | coverity: 1449508, 1449522.
* Don't use r if malloc fails.Linus Nordberg2017-08-011-2/+4
| | | | coverity: 1450949
* Remove unused code.Linus Nordberg2011-09-291-32/+0
|
* Add Emacs local variable for stroustrup style.linus2010-03-231-0/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@530 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Reindent and remove trailing whitespace.linus2010-03-081-11/+11
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@517 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Creditskolla2009-09-111-0/+5
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@511 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Added Stefan's UDP fragmentation fixkolla2009-09-111-0/+25
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@510 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* fixed addr_copy function for bsdvenaas2009-02-271-0/+3
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@485 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* fixed a bug with possible segfault in tcpconnect code, updated radsecproxy.1venaas2009-02-171-1/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@476 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* timeout for connectvenaas2009-02-051-2/+43
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@467 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* made it so it works with mix of dynamic and static servers for a realmvenaas2009-01-131-0/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@457 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* moved more code to tlscommon, fixed a couple of minor lint warningsvenaas2008-12-221-25/+3
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@447 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* some code improvemetns, more efficiently removing outstanding requests when ↵venaas2008-09-241-0/+46
| | | | | | removing client, also taking care of dynamic servers, need to look into server removal git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@399 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* better logging, fixed bug with crash when removing clientvenaas2008-09-171-38/+3
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@387 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* fixed couple of bugsvenaas2008-09-171-0/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@386 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* cleaning up codevenaas2008-09-171-0/+21
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@383 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* changing to use a separate client structure for each udp clientvenaas2008-09-141-0/+37
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@378 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* moved bindtoaddr back to radsecproxy.cvenaas2008-08-211-27/+0
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@355 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* restructuring codevenaas2008-08-211-0/+27
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@351 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* removed some harmless compiler warningsvenaas2008-06-101-1/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@289 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Solaris9 fixvenaas2008-02-211-2/+4
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@216 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* Solaris9 fixesvenaas2008-02-191-1/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@214 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* implemented config file stack; to be used for include supportvenaas2007-11-261-1/+1
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@198 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* added subjectaltname cert checks, incl regexp urivenaas2007-06-281-2/+12
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@155 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* added logging to file and syslog (need to add support for specifying facility)venaas2007-05-041-5/+7
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@72 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* using debug() some more placesvenaas2007-05-031-1/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@70 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* added tcp and udp listen directivesvenaas2007-02-161-27/+0
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@60 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* changes to build on NetBSDvenaas2007-02-091-0/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@54 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* added code for reading main config and restructured tls init codevenaas2007-01-161-0/+12
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@39 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* fixed minor bugsvenaas2007-01-041-1/+2
| | | | git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@27 e88ac4ed-0b26-0410-9574-a7f39faa03bf
* git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@2 ↵venaas2007-01-021-0/+125
e88ac4ed-0b26-0410-9574-a7f39faa03bf