You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MSSPI.md
+71-1Lines changed: 71 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ The order of functions in the header file is **intentional and important**. Func
87
87
2. **Basic configuration** - [`msspi_set_client()`](#msspi_set_client), [`msspi_set_dtls()`](#msspi_set_dtls) set operation mode
88
88
3. **DTLS-specific** - [`msspi_set_dtls_peeraddr()`](#msspi_set_dtls_peeraddr), [`msspi_set_dtls_mtu()`](#msspi_set_dtls_mtu) if using DTLS
89
89
4. **Credential-affecting parameters** - [`msspi_set_version()`](#msspi_set_version), [`msspi_set_cipherlist()`](#msspi_set_cipherlist), [`msspi_set_hostname()`](#msspi_set_hostname), [`msspi_set_peerauth()`](#msspi_set_peerauth), [`msspi_set_cachestring()`](#msspi_set_cachestring) **must be called before certificate functions** as they affect credential caching
Sets keying material export parameters for RFC 5705 (TLS) / RFC 8446 (TLS 1.3) key material export. Must be called after handshake completion and before [`msspi_get_keying_material()`](#msspi_get_keying_material).
1066
+
1067
+
**Parameters:**
1068
+
- `h`: Handle
1069
+
- `label`: Export label (ASCII string as bytes)
1070
+
- `label_len`: Length of label
1071
+
- `context`: Optional context value (can be `NULL` if `context_len` is 0)
1072
+
- `context_len`: Length of context (0 if no context)
1073
+
- `keying_material_len`: Desired length of exported keying material
1074
+
1075
+
**Returns:** `1` on success, `0` on failure
1076
+
1077
+
---
1078
+
1079
+
### msspi_get_keying_material
1080
+
1081
+
```c
1082
+
int msspi_get_keying_material(MSSPI_HANDLE h, const uint8_t **keying_material, size_t *keying_material_len);
1083
+
```
1084
+
1085
+
Exports keying material using parameters set by [`msspi_set_keying_material_info()`](#msspi_set_keying_material_info). Used for deriving keys for external protocols (e.g., SRTP keys in WebRTC).
1086
+
1087
+
**Parameters:**
1088
+
-`h`: Handle
1089
+
-`keying_material`: Pointer to receive exported key material
1090
+
-`keying_material_len`: Pointer to receive length of exported material
0 commit comments