Commit graph

351 commits

Author SHA1 Message Date
Joachim Bauch
dfe0e0176d ice: Added functions to get selected candidates. (#72)
* ice: Added functions to get selected candidates.

Also added a function to get the type of a candidate. This can be used when
sending data to handle relay candidates, where data must be sent through the
TURN client.

* Forward-declare "ice_cand" before it is used.
2017-09-06 19:47:58 +02:00
Alfred E. Heggestad
9263b81ae5 ice: move gathering to application (#68)
ref: https://github.com/creytiv/re/wiki/ICE-Stacks-merge
2017-07-15 09:12:12 +02:00
Richard Aas
b08fc20a28 Added function sipreg_laddr() (#67) 2017-06-30 09:51:31 +02:00
Alfred E. Heggestad
9ca4ebb078 mod: add accessor function to module list (#66) 2017-06-29 22:32:52 +02:00
Richard Aas
d5acb4b000 optimize rand_str() and rand_char() (#65) 2017-06-25 15:17:28 +02:00
Alfred E. Heggestad
1544a1e375 rtp: update doxygen comments after API change 2017-06-01 21:34:28 +02:00
Alfred E. Heggestad
920a41d319 rtp: add extension bit to the api 2017-06-01 20:15:31 +02:00
Jan Hoffmann
3b305e70b3 Make sampling rate for telephone events configurable (#57) 2017-05-08 13:51:21 +02:00
Alfred E. Heggestad
a1f84fe762 Remove ICE Session object (#56)
* ice: export enum ice_candpair_state

this is related to the work of merging 2 ice-stacks into 1:

    https://github.com/creytiv/re/wiki/ICE-Stacks-merge

* ice: remove ice session (struct ice)

* ice: remove list, cleanup

* ice: use local role instead of offerer
2017-04-28 08:13:00 +02:00
Mikhail Barg
dfd952d858 Update MSVS projects to vs2015 (#55) 2017-04-18 15:25:04 +02:00
Alfred E. Heggestad
0b73be50cd Solaris pthread once (#52)
* main: use same PTHREAD_ONCE_INIT for all platforms

- Remove special case for SOLARIS
- Tested on Solaris 11.3 with gcc

* README: specify version of Solaris
2017-04-02 16:33:46 +02:00
Alfred E. Heggestad
068b9ab8b8 tls: add accessor to OpenSSL context (ref #35) (#46) 2017-03-07 08:36:14 +01:00
Alfred E. Heggestad
1fe13a9dd4 ice: make ice role type public (#43)
- add "ice/ICE" prefix to enum ice_role and values
- export enum ice_role to public API
2017-03-06 13:38:03 +01:00
Alfred E. Heggestad
cb936d9fb2 srtcp: use unsigned 32-bit for encrypted bit (#41)
the ep is left-shifted by 31-bits. If the size of int
is 4 bytes then the EP bit will end up in the top bit
which is also the sign bit.

it is safer and better to use an unsigned type here
2017-02-16 08:47:32 +01:00
Alfred E. Heggestad
f115a7418e fmt: print directly to stream using handler (#38) 2017-01-06 15:45:22 +01:00
Richard Aas
e167b2c154 HTTP client improvements (#36)
* http client connection reuse

* retry failed requests using fresh connections

* fix line length

* Handle Connection: close response header
2017-01-05 21:53:32 +01:00
Alfred E. Heggestad
6907d760f0 tls: undef X509_NAME for win32 (fixes #32) (#34) 2016-11-23 08:29:44 +01:00
Alfred E. Heggestad
5404e5630f udp: added udp_helper_find() (#28) 2016-11-08 18:48:52 +01:00
Richard Aas
718583f8a9 tls_set_certificate_pem()/tls_set_certificate_der(): minor format adjustments 2016-11-02 17:46:11 +01:00
Lennart Grahl
1ff344dbd9 Setting Certificate/Private Key Improvements (#25)
Add tls_set_certificate_pem() and tls_set_certificate_der() functions for setting certificate and private key on a TLS context in respective formats. Private key may optionally be passed as a separate argument, or part of the certificate data.
2016-11-02 17:37:25 +01:00
Lennart Grahl
a627951aeb Change DTLS connection's remote peer address (#24)
* Make it possible to change the DTLS connection's remote peer address.
Add `dtls_set_peer` function

* Add `dtls_peer` getter function
Change `dtls_set_peer` signature, leave comparison of the remote address up to the user application

* Fix typo in docstring
2016-11-02 13:56:30 +01:00
Alfred E. Heggestad
afa2f1e21e Openssl 1.1.0 (#9)
Add support for openssl 1.1.0
2016-10-30 15:44:18 +01:00
Richard Aas
a3a44da128 dns/resolv cleanup (#11)
* dns/resolv: res_ninit()/res_nclose()

* dns/resolv: mac os x fixes

* resolv: added fix for OpenBSD

* Add support for DragonFly BSD

* Solris needs libresolv (patch by Dmitrij D. Czarkoff)
2016-10-28 10:03:15 +02:00
Dmitrij D. Czarkoff
bb2b79b44e Clean up remnants of Symbian support (#13) 2016-10-24 19:41:43 +02:00
Richard Aas
30a963b874 tls: add tls_flush_error to dump openssl errors
Based on contributions from Lennart Grahl (#1) and Alfred Heggestad (#8)
2016-09-23 14:20:22 +02:00
Alfred E. Heggestad
495f5ff51b remove symbian 2016-09-18 17:11:37 +02:00
Alfred E. Heggestad
043aa32cc2 remove support for Symbian OS 2016-09-18 17:00:57 +02:00
Alfred E. Heggestad
1859673efc patch from richard: use hash of from_uri for sort_key 2016-06-24 12:40:22 +00:00
Alfred E. Heggestad
c5b31b7c9f json: init int err to 0 2016-06-24 08:13:36 +00:00
Alfred E. Heggestad
107323352d patch from richard
sort multiple DNS records using a key
2016-06-21 14:58:15 +00:00
Alfred E. Heggestad
64d5123da7 patch from richard:
this patch fix an issue with stateless sip requests.

In some scenarios (depending of DNS replies), the request
is being terminated before the message is sent. This patch
fixes the issue. 

For stateless requests, if A/AAAA records for target of SRV record
is not present in addl (additional list) of NAPTR/SRV DNS reply, we
will explicitly query for those.
2016-06-21 10:41:08 +00:00
Richard Aas
85ed43afd1 stun attribute encode: use strict number types 2016-06-20 07:33:36 +00:00
Richard Aas
852a3c6084 configurable MAIN_DEBUG and TMR_DEBUG 2016-06-09 06:49:18 +00:00
Richard Aas
4666232470 added USE_OPENSSL_AES and USE_OPENSSL_HMAC 2016-06-02 07:54:51 +00:00
Richard Aas
06bbc5ba2c tls: add client SNI (Server Name Indication) support 2016-06-02 07:31:30 +00:00
Alfred E. Heggestad
09d40ac36c patch: add tls_set_ciphers() 2016-05-08 13:22:18 +00:00
Richard Aas
05c9422f2d use debug_info for SO_REUSEPORT errors 2016-04-27 06:09:00 +00:00
Alfred E. Heggestad
d76092bbef sys: add support for arc4random
thanks to Dmitrij D. Czarkoff for the original patch
2016-04-15 07:09:59 +00:00
Richard Aas
a6cb27837b tls: added tls_cipher_name() 2016-03-07 13:37:58 +00:00
Richard Aas
e87b0df7a9 tls: added tls_cipher_name() 2016-03-07 13:25:47 +00:00
Richard Aas
f62154f42a lock: fix debian build without HAVE_PTHREAD_RWLOCK 2016-03-07 13:06:24 +00:00
Richard Aas
47b59eb920 net: fix openwrt posix interface build warning 2016-02-29 08:27:20 +00:00
Richard Aas
a85f61b8a6 dtls: fix building with older openssl libs 2016-02-29 08:12:37 +00:00
Richard Aas
60fa9db55c sa ntop/pton: define _BSD_SOURCE and _DEFAULT_SOURCE 2016-02-22 15:10:41 +00:00
Alfred E. Heggestad
88aa3a0097 patch: add dtls_set_mtu() 2016-02-15 15:21:22 +00:00
Alfred E. Heggestad
71f79e7198 rtcp: adjust mbuf positions for RTCP_PSFB_AFB decoding 2016-02-15 08:31:47 +00:00
Richard Aas
08ac591891 main: fix ios 32-bit warning 2016-02-08 15:36:50 +00:00
Alfred E. Heggestad
a9ba99ae3e telev: add send queue limit 2016-02-01 12:52:56 +00:00
Richard Aas
bfa2112207 hmac: add sha256 support 2016-02-01 08:04:53 +00:00
Alfred E. Heggestad
a9a987942d uri: fix buffer overflow 2016-01-30 00:27:18 +00:00