~ubuntu-branches/ubuntu/trusty/mysql-5.5/trusty-updates

« back to all changes in this revision

Viewing changes to extra/yassl/include/yassl_int.hpp

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-20 09:30:47 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20150420093047-yd9g5p2hesgvlzwm
Tags: 5.5.43-0ubuntu0.14.04.1
* SECURITY UPDATE: Update to 5.5.43 to fix security issues (LP: #1444616)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html
  - CVE-2015-0433
  - CVE-2015-0441
  - CVE-2015-0499
  - CVE-2015-0501
  - CVE-2015-0505
  - CVE-2015-2568
  - CVE-2015-2571
  - CVE-2015-2573

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
};
108
108
 
109
109
 
 
110
// track received messages to explicitly disallow duplicate messages
 
111
struct RecvdMessages {
 
112
    uint8 gotClientHello_;
 
113
    uint8 gotServerHello_;
 
114
    uint8 gotCert_;
 
115
    uint8 gotServerKeyExchange_;
 
116
    uint8 gotCertRequest_;
 
117
    uint8 gotServerHelloDone_;
 
118
    uint8 gotCertVerify_;
 
119
    uint8 gotClientKeyExchange_;
 
120
    uint8 gotFinished_;
 
121
    RecvdMessages() : gotClientHello_(0), gotServerHello_(0), gotCert_(0),
 
122
                      gotServerKeyExchange_(0), gotCertRequest_(0),
 
123
                      gotServerHelloDone_(0), gotCertVerify_(0),
 
124
                      gotClientKeyExchange_(0), gotFinished_(0)
 
125
                    {} 
 
126
};
 
127
 
 
128
 
110
129
// combines all states
111
130
class States {
112
131
    RecordLayerState recordLayer_;
115
134
    ServerState      serverState_;
116
135
    ConnectState     connectState_;
117
136
    AcceptState      acceptState_;
 
137
    RecvdMessages    recvdMessages_;
118
138
    char             errorString_[MAX_ERROR_SZ];
119
139
    YasslError       what_;
120
140
public:
137
157
    AcceptState&      UseAccept();
138
158
    char*             useString();
139
159
    void              SetError(YasslError);
 
160
    int               SetMessageRecvd(HandShakeType);
140
161
private:
141
162
    States(const States&);              // hide copy
142
163
    States& operator=(const States&);   // and assign