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


Public Member Functions | |
| ServerKeyExchange (SSL &) | |
| ServerKeyExchange () | |
| ~ServerKeyExchange () | |
| void | createKey (SSL &) |
| void | build (SSL &ssl) |
| const opaque * | getKey () const |
| int | getKeyLength () const |
| input_buffer & | set (input_buffer &in) |
| output_buffer & | get (output_buffer &out) const |
| void | Process (input_buffer &, SSL &) |
| HandShakeType | get_type () const |
Private Member Functions | |
| ServerKeyExchange (const ServerKeyExchange &) | |
| ServerKeyExchange & | operator= (const ServerKeyExchange &) |
Private Attributes | |
| ServerKeyBase * | server_key_ |
Friends | |
| output_buffer & | operator<< (output_buffer &, const ServerKeyExchange &) |
Definition at line 400 of file yassl_imp.hpp.
| yaSSL::ServerKeyExchange::ServerKeyExchange | ( | SSL & | ) | [explicit] |
Definition at line 1479 of file yassl_imp.cpp.
References createKey().
01480 { 01481 createKey(ssl); 01482 }
Here is the call graph for this function:

| yaSSL::ServerKeyExchange::ServerKeyExchange | ( | ) |
| yaSSL::ServerKeyExchange::~ServerKeyExchange | ( | ) |
Definition at line 1490 of file yassl_imp.cpp.
References server_key_, and yaSSL::ysDelete().
01491 { 01492 ysDelete(server_key_); 01493 }
Here is the call graph for this function:

| yaSSL::ServerKeyExchange::ServerKeyExchange | ( | const ServerKeyExchange & | ) | [private] |
| void yaSSL::ServerKeyExchange::build | ( | SSL & | ssl | ) |
Definition at line 1496 of file yassl_imp.cpp.
References yaSSL::ServerKeyBase::build(), yaSSL::ServerKeyBase::get_length(), server_key_, and yaSSL::HandShakeBase::set_length().
Referenced by yaSSL::sendServerKeyExchange().
01497 { 01498 server_key_->build(ssl); 01499 set_length(server_key_->get_length()); 01500 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void yaSSL::ServerKeyExchange::createKey | ( | SSL & | ) |
Definition at line 74 of file yassl_imp.cpp.
References yaSSL::Factory< AbstractProduct, IdentifierType, ProductCreator >::CreateObject(), yaSSL::factory_error, yaSSL::Security::get_parms(), yaSSL::SSL::getFactory(), yaSSL::SSL::getSecurity(), yaSSL::sslFactory::getServerKey(), yaSSL::Parameters::kea_, server_key_, and yaSSL::SSL::SetError().
Referenced by Process(), and ServerKeyExchange().
00075 { 00076 const ServerKeyFactory& skf = ssl.getFactory().getServerKey(); 00077 server_key_ = skf.CreateObject(ssl.getSecurity().get_parms().kea_); 00078 00079 if (!server_key_) 00080 ssl.SetError(factory_error); 00081 }
Here is the call graph for this function:

Here is the caller graph for this function:

| output_buffer & yaSSL::ServerKeyExchange::get | ( | output_buffer & | out | ) | const [virtual] |
| HandShakeType yaSSL::ServerKeyExchange::get_type | ( | ) | const [virtual] |
Implements yaSSL::HandShakeBase.
Definition at line 1527 of file yassl_imp.cpp.
References yaSSL::server_key_exchange.
01528 { 01529 return server_key_exchange; 01530 }
| const opaque * yaSSL::ServerKeyExchange::getKey | ( | ) | const |
Definition at line 1503 of file yassl_imp.cpp.
References yaSSL::ServerKeyBase::get_serverKey(), and server_key_.
Referenced by yaSSL::operator<<().
01504 { 01505 return server_key_->get_serverKey(); 01506 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int yaSSL::ServerKeyExchange::getKeyLength | ( | ) | const |
Definition at line 1509 of file yassl_imp.cpp.
References yaSSL::ServerKeyBase::get_length(), and server_key_.
Referenced by yaSSL::operator<<().
01510 { 01511 return server_key_->get_length(); 01512 }
Here is the call graph for this function:

Here is the caller graph for this function:

| ServerKeyExchange& yaSSL::ServerKeyExchange::operator= | ( | const ServerKeyExchange & | ) | [private] |
| void yaSSL::ServerKeyExchange::Process | ( | input_buffer & | , | |
| SSL & | ||||
| ) | [virtual] |
Implements yaSSL::HandShakeBase.
Definition at line 1469 of file yassl_imp.cpp.
References createKey(), yaSSL::SSL::GetError(), yaSSL::ServerKeyBase::read(), server_key_, and yaSSL::serverKeyExchangeComplete.
01470 { 01471 createKey(ssl); 01472 if (ssl.GetError()) return; 01473 server_key_->read(ssl, input); 01474 01475 ssl.useStates().useClient() = serverKeyExchangeComplete; 01476 }
Here is the call graph for this function:

| input_buffer & yaSSL::ServerKeyExchange::set | ( | input_buffer & | in | ) | [virtual] |
| output_buffer& operator<< | ( | output_buffer & | output, | |
| const ServerKeyExchange & | sk | |||
| ) | [friend] |
Definition at line 401 of file yassl_imp.hpp.
Referenced by build(), createKey(), getKey(), getKeyLength(), Process(), and ~ServerKeyExchange().
1.4.7

