Commit fe4da11
committed
examples: use a non-empty importer context in the example callbacks
Change the example RFC 9258 importer callbacks (wolfssl/test.h) to carry a
non-empty optional context ("wolfSSL importer example context") instead of
an empty one, to better illustrate the feature. The server callback now
verifies the received context matches.
Verified wolfSSL <-> GnuTLS 3.8.4 interop (both directions, TLS 1.3,
TLS_AES_128_GCM_SHA256) still succeeds with the context present, and that a
mismatched context is correctly rejected with a binder-verification
failure.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XRMrPoMWjro4shL6W2JHXw1 parent 20b768c commit fe4da11
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2102 | 2102 | | |
2103 | 2103 | | |
2104 | 2104 | | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
2108 | 2110 | | |
2109 | 2111 | | |
2110 | 2112 | | |
| |||
2121 | 2123 | | |
2122 | 2124 | | |
2123 | 2125 | | |
| 2126 | + | |
2124 | 2127 | | |
2125 | 2128 | | |
2126 | 2129 | | |
| |||
2130 | 2133 | | |
2131 | 2134 | | |
2132 | 2135 | | |
2133 | | - | |
2134 | | - | |
2135 | | - | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
2136 | 2143 | | |
2137 | 2144 | | |
2138 | 2145 | | |
| |||
2148 | 2155 | | |
2149 | 2156 | | |
2150 | 2157 | | |
| 2158 | + | |
2151 | 2159 | | |
2152 | 2160 | | |
2153 | | - | |
2154 | 2161 | | |
2155 | 2162 | | |
2156 | 2163 | | |
2157 | 2164 | | |
2158 | 2165 | | |
2159 | | - | |
2160 | | - | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
2161 | 2169 | | |
2162 | 2170 | | |
2163 | 2171 | | |
| |||
0 commit comments