ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Transport.pm
(Generate patch)

Comparing AnyEvent-MP/MP/Transport.pm (file contents):
Revision 1.13 by root, Mon Aug 3 22:05:55 2009 UTC vs.
Revision 1.14 by root, Tue Aug 4 07:46:33 2009 UTC

403cryptographic nonce, i.e. random data of high quality. To keep the 403cryptographic nonce, i.e. random data of high quality. To keep the
404protocol text-only, these are usually 32 base64-encoded octets, but 404protocol text-only, these are usually 32 base64-encoded octets, but
405it could be anything that doesn't contain any ASCII CR or ASCII LF 405it could be anything that doesn't contain any ASCII CR or ASCII LF
406characters. 406characters.
407 407
408I<< The two nonces B<must> be different, and an aemp implementation
409B<must> check and fail when they are identical >>.
410
408Example of the two lines of greeting: 411Example of the two lines of greeting:
409 412
410 aemp;0;fec.4a7720fc;127.0.0.1:1235,[::1]:1235;hmac_md6_64_256;json,storable;provider=AE-0.0 413 aemp;0;fec.4a7720fc;127.0.0.1:1235,[::1]:1235;hmac_md6_64_256;json,storable;provider=AE-0.0
411 p/I122ql7kJR8lumW3lXlXCeBnyDAvz8NQo3x5IFowE4 414 p/I122ql7kJR8lumW3lXlXCeBnyDAvz8NQo3x5IFowE4
412 415
413=head2 TLS handshake 416=head2 TLS handshake
414 417
415If, after the handshake, both sides indicate interest in TLS, then the 418I<< If, after the handshake, both sides indicate interest in TLS, then the
416connection I<must> use TLS, or fail. 419connection B<must> use TLS, or fail.>>
417 420
418Both sides compare their nonces, and the side who sent the lower nonce 421Both sides compare their nonces, and the side who sent the lower nonce
419value ("string" comparison on the raw octet values) becomes the client, 422value ("string" comparison on the raw octet values) becomes the client,
420and the one with the higher nonce the server. 423and the one with the higher nonce the server.
421 424

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines