82 |
83 |
84 | Class SslTools
85 |
86 | Use this class to peek SSL client/server hello information.
87 |
88 |
89 |
90 |
Inheritance
91 |
92 |
SslTools
93 |
94 |
95 |
Inherited Members
96 |
99 |
102 |
105 |
108 |
111 |
114 |
117 |
118 |
119 | Assembly: StreamExtended.dll
120 |
121 |
122 |
public class SslTools
123 |
124 | Methods
125 |
126 |
127 |
128 |
129 |
130 | Is the given stream starts with an SSL client hello?
131 |
132 |
133 | Declaration
134 |
135 |
public static Task<bool> IsClientHello(CustomBufferedStream stream, IBufferPool bufferPool, CancellationToken cancellationToken)
136 |
137 | Parameters
138 |
139 |
140 |
141 | | Type |
142 | Name |
143 | Description |
144 |
145 |
146 |
147 |
148 | | CustomBufferedStream |
149 | stream |
150 | |
151 |
152 |
153 | | IBufferPool |
154 | bufferPool |
155 | |
156 |
157 |
158 | | CancellationToken |
159 | cancellationToken |
160 | |
161 |
162 |
163 |
164 | Returns
165 |
166 |
167 |
168 | | Type |
169 | Description |
170 |
171 |
172 |
173 |
174 | | Task<Boolean> |
175 | |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 | Is the given stream starts with an SSL client hello?
184 |
185 |
186 | Declaration
187 |
188 |
public static Task<bool> IsServerHello(CustomBufferedStream stream, IBufferPool bufferPool, CancellationToken cancellationToken)
189 |
190 | Parameters
191 |
192 |
193 |
194 | | Type |
195 | Name |
196 | Description |
197 |
198 |
199 |
200 |
201 | | CustomBufferedStream |
202 | stream |
203 | |
204 |
205 |
206 | | IBufferPool |
207 | bufferPool |
208 | |
209 |
210 |
211 | | CancellationToken |
212 | cancellationToken |
213 | |
214 |
215 |
216 |
217 | Returns
218 |
219 |
220 |
221 | | Type |
222 | Description |
223 |
224 |
225 |
226 |
227 | | Task<Boolean> |
228 | |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | Peek the SSL client hello information.
237 |
238 |
239 | Declaration
240 |
241 |
public static Task<ClientHelloInfo> PeekClientHello(CustomBufferedStream clientStream, IBufferPool bufferPool, CancellationToken cancellationToken = default(CancellationToken))
242 |
243 | Parameters
244 |
245 |
246 |
247 | | Type |
248 | Name |
249 | Description |
250 |
251 |
252 |
253 |
254 | | CustomBufferedStream |
255 | clientStream |
256 | |
257 |
258 |
259 | | IBufferPool |
260 | bufferPool |
261 | |
262 |
263 |
264 | | CancellationToken |
265 | cancellationToken |
266 | |
267 |
268 |
269 |
270 | Returns
271 |
272 |
273 |
274 | | Type |
275 | Description |
276 |
277 |
278 |
279 |
280 | | Task<ClientHelloInfo> |
281 | |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 | Peek the SSL client hello information.
290 |
291 |
292 | Declaration
293 |
294 |
public static Task<ServerHelloInfo> PeekServerHello(CustomBufferedStream serverStream, IBufferPool bufferPool, CancellationToken cancellationToken = default(CancellationToken))
295 |
296 | Parameters
297 |
298 |
299 |
300 | | Type |
301 | Name |
302 | Description |
303 |
304 |
305 |
306 |
307 | | CustomBufferedStream |
308 | serverStream |
309 | |
310 |
311 |
312 | | IBufferPool |
313 | bufferPool |
314 | |
315 |
316 |
317 | | CancellationToken |
318 | cancellationToken |
319 | |
320 |
321 |
322 |
323 | Returns
324 |
325 |
326 |
327 | | Type |
328 | Description |
329 |
330 |
331 |
332 |
333 | | Task<ServerHelloInfo> |
334 | |
335 |
336 |
337 |
338 |