Skip to content

Commit 11701a6

Browse files
committed
[apps] Added cryptomode URI query option.
1 parent 9a022d6 commit 11701a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/socketoptions.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ const SocketOption srt_options [] {
254254
#ifdef SRT_ENABLE_BINDTODEVICE
255255
{ "bindtodevice", 0, SRTO_BINDTODEVICE, SocketOption::PRE, SocketOption::STRING, nullptr},
256256
#endif
257-
{ "retransmitalgo", 0, SRTO_RETRANSMITALGO, SocketOption::PRE, SocketOption::INT, nullptr }
257+
{ "retransmitalgo", 0, SRTO_RETRANSMITALGO, SocketOption::PRE, SocketOption::INT, nullptr },
258+
{ "cryptomode", 0, SRTO_CRYPTOMODE, SocketOption::PRE, SocketOption::INT, nullptr }
258259
};
259260
}
260261

docs/apps/srt-live-transmit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ following type specification:
336336
| -------------------- | ---------------- | ------------------------- | ----------- |
337337
| `congestion` | {`live`, `file`} | `SRTO_CONGESTION` | Type of congestion control. |
338338
| `conntimeo` | `ms` | `SRTO_CONNTIMEO` | Connection timeout. |
339+
| `cryptomode` | 0..2 | `SRTO_CRYPTOMODE` | Cryptographic mode. |
339340
| `drifttracer` | `bool` | `SRTO_DRIFTTRACER` | Enable drift tracer. |
340341
| `enforcedencryption` | `bool` | `SRTO_ENFORCEDENCRYPTION` | Reject connection if parties set different passphrase. |
341342
| `fc` | `bytes` | `SRTO_FC` | Flow control window size. |

0 commit comments

Comments
 (0)