Skip to content

Commit d68c259

Browse files
committed
WHIP: Fix bugs causing build OpenSSL error, to work with Pion
1. Fix OpenSSL build error. 2. Support OpenSSL 1.0.1k and newer versions. 3. Support WHIP authorization via Bearer HTTP header. 4. Change the option default value from 1500 to 1200, to make Pion work. 5. Detect the minimum required OpenSSL version, should be 1.0.1k and newer. 6. Quickly check the SDP answer by taking a glance at the first few bytes.
1 parent 928c98a commit d68c259

File tree

3 files changed

+146
-106
lines changed

3 files changed

+146
-106
lines changed

configure

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6801,6 +6801,14 @@ enabled rkmpp && { require_pkg_config rkmpp rockchip_mpp rockchip/r
68016801
}
68026802
enabled vapoursynth && require_pkg_config vapoursynth "vapoursynth-script >= 42" VSScript.h vsscript_init
68036803

6804+
enabled openssl && {
6805+
enabled rtc_muxer && {
6806+
$pkg_config --exists --print-errors "openssl >= 1.0.1k" ||
6807+
require_pkg_config openssl "openssl >= 1.0.1k" openssl/ssl.h SSL_library_init ||
6808+
require_pkg_config openssl "openssl >= 1.0.1k" openssl/ssl.h OPENSSL_init_ssl
6809+
}
6810+
}
6811+
68046812

68056813
if enabled gcrypt; then
68066814
GCRYPT_CONFIG="${cross_prefix}libgcrypt-config"

doc/muxers.texi

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,26 +1361,29 @@ This muxer supports the following options:
13611361

13621362
@table @option
13631363

1364-
@item ice_arq_max @var{size}
1364+
@item ice_arq_max @var{integer}
13651365
Set the maximum number of retransmissions for the ICE ARQ mechanism.
13661366
Default value is 5.
13671367

1368-
@item ice_arq_timeout @var{size}
1368+
@item ice_arq_timeout @var{integer}
13691369
Set the start timeout in milliseconds for the ICE ARQ mechanism.
13701370
Default value is 30.
13711371

1372-
@item dtls_arq_max @var{size}
1372+
@item dtls_arq_max @var{integer}
13731373
Set the maximum number of retransmissions for the DTLS ARQ mechanism.
13741374
Default value is 5.
13751375

1376-
@item dtls_arq_timeout @var{size}
1376+
@item dtls_arq_timeout @var{integer}
13771377
Set the start timeout in milliseconds for the DTLS ARQ mechanism.
13781378
Default value is 50.
13791379

1380-
@item pkt_size @var{size}
1380+
@item pkt_size @var{integer}
13811381
Set the maximum size, in bytes, of RTP packets that send out.
13821382
Default value is 1500.
13831383

1384+
@item authorization @var{string}
1385+
The optional Bearer token for WHIP Authorization.
1386+
13841387
@end table
13851388

13861389
@anchor{ico}

0 commit comments

Comments
 (0)