#include <yassl_imp.hpp>
Inheritance diagram for yaSSL::HandShakeHeader:


Public Member Functions | |
| HandShakeHeader () | |
| ContentType | get_type () const |
| uint16 | get_length () const |
| HandShakeType | get_handshakeType () const |
| void | Process (input_buffer &, SSL &) |
| void | set_type (HandShakeType hst) |
| void | set_length (uint32 u32) |
| input_buffer & | set (input_buffer &in) |
| output_buffer & | get (output_buffer &out) const |
Private Member Functions | |
| HandShakeHeader (const HandShakeHeader &) | |
| HandShakeHeader & | operator= (const HandShakeHeader &) |
Private Attributes | |
| HandShakeType | type_ |
| uint24 | length_ |
Friends | |
| input_buffer & | operator>> (input_buffer &, HandShakeHeader &) |
| output_buffer & | operator<< (output_buffer &, const HandShakeHeader &) |
Definition at line 156 of file yassl_imp.hpp.
| yaSSL::HandShakeHeader::HandShakeHeader | ( | ) | [inline] |
| yaSSL::HandShakeHeader::HandShakeHeader | ( | const HandShakeHeader & | ) | [private] |
| output_buffer & yaSSL::HandShakeHeader::get | ( | output_buffer & | out | ) | const [virtual] |
| HandShakeType yaSSL::HandShakeHeader::get_handshakeType | ( | ) | const |
Definition at line 639 of file yassl_imp.cpp.
References type_.
Referenced by yaSSL::SSL::verifyState().
00640 { 00641 return type_; 00642 }
Here is the caller graph for this function:

| uint16 yaSSL::HandShakeHeader::get_length | ( | ) | const [virtual] |
Implements yaSSL::Message.
Definition at line 633 of file yassl_imp.cpp.
References yaSSL::c24to32(), and length_.
Here is the call graph for this function:

| ContentType yaSSL::HandShakeHeader::get_type | ( | ) | const [virtual] |
Implements yaSSL::Message.
Definition at line 627 of file yassl_imp.cpp.
References yaSSL::handshake.
00628 { 00629 return handshake; 00630 }
| HandShakeHeader& yaSSL::HandShakeHeader::operator= | ( | const HandShakeHeader & | ) | [private] |
| void yaSSL::HandShakeHeader::Process | ( | input_buffer & | , | |
| SSL & | ||||
| ) | [virtual] |
Implements yaSSL::Message.
Definition at line 611 of file yassl_imp.cpp.
References yaSSL::c24to32(), yaSSL::Factory< AbstractProduct, IdentifierType, ProductCreator >::CreateObject(), yaSSL::factory_error, yaSSL::SSL::getFactory(), yaSSL::sslFactory::getHandShake(), yaSSL::hashHandShake(), length_, yaSSL::SSL::SetError(), type_, yaSSL::SSL::verifyState(), and yaSSL::ysDelete().
00612 { 00613 ssl.verifyState(*this); 00614 const HandShakeFactory& hsf = ssl.getFactory().getHandShake(); 00615 mySTL::auto_ptr<HandShakeBase> hs(hsf.CreateObject(type_), ysDelete); 00616 if (!hs.get()) { 00617 ssl.SetError(factory_error); 00618 return; 00619 } 00620 hashHandShake(ssl, input, c24to32(length_)); 00621 00622 input >> *hs; 00623 hs->Process(input, ssl); 00624 }
Here is the call graph for this function:

| input_buffer & yaSSL::HandShakeHeader::set | ( | input_buffer & | in | ) | [virtual] |
| void yaSSL::HandShakeHeader::set_length | ( | uint32 | u32 | ) |
Definition at line 651 of file yassl_imp.cpp.
References yaSSL::c32to24(), and length_.
Referenced by yaSSL::buildHeaders().
Here is the call graph for this function:

Here is the caller graph for this function:

| void yaSSL::HandShakeHeader::set_type | ( | HandShakeType | hst | ) |
Definition at line 645 of file yassl_imp.cpp.
References type_.
Referenced by yaSSL::buildHeaders().
00646 { 00647 type_ = hst; 00648 }
Here is the caller graph for this function:

| output_buffer& operator<< | ( | output_buffer & | output, | |
| const HandShakeHeader & | hdr | |||
| ) | [friend] |
Definition at line 602 of file yassl_imp.cpp.
00603 { 00604 output[AUTO] = hdr.type_; 00605 output.write(hdr.length_, sizeof(hdr.length_)); 00606 return output; 00607 }
| input_buffer& operator>> | ( | input_buffer & | input, | |
| HandShakeHeader & | hs | |||
| ) | [friend] |
Definition at line 589 of file yassl_imp.cpp.
00590 { 00591 hs.type_ = HandShakeType(input[AUTO]); 00592 00593 hs.length_[0] = input[AUTO]; 00594 hs.length_[1] = input[AUTO]; 00595 hs.length_[2] = input[AUTO]; 00596 00597 return input; 00598 }
uint24 yaSSL::HandShakeHeader::length_ [private] |
Definition at line 158 of file yassl_imp.hpp.
Referenced by get_length(), yaSSL::operator<<(), yaSSL::operator>>(), Process(), and set_length().
HandShakeType yaSSL::HandShakeHeader::type_ [private] |
Definition at line 157 of file yassl_imp.hpp.
Referenced by get_handshakeType(), yaSSL::operator<<(), yaSSL::operator>>(), Process(), and set_type().
1.4.7

