/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
inline std::ostream& operator<<(std::ostream& os, SSLContentType v) { switch (v) { case ssl_ct_change_cipher_spec: return os << "CCS"; case ssl_ct_alert: return os << "alert"; case ssl_ct_handshake: return os << "handshake"; case ssl_ct_application_data: return os << "application data"; case ssl_ct_ack: return os << "ack";
} return os << "UNKNOWN content type " << static_cast<int>(v);
}
inline std::ostream& operator<<(std::ostream& os, SSLSecretDirection v) { switch (v) { case ssl_secret_read: return os << "read"; case ssl_secret_write: return os << "write";
} return os << "UNKNOWN secret direction " << static_cast<int>(v);
}
bool Read(uint8_t* val); // Read an integral type of specified width. bool Read(uint32_t* val, size_t size); // Reads len bytes into dest buffer, overwriting it. bool Read(DataBuffer* dest, size_t len); bool ReadFromMark(DataBuffer* val, size_t len, size_t mark); // Reads bytes into dest buffer, overwriting it. The number of bytes is // determined by reading from len_size bytes from the stream first. bool ReadVariable(DataBuffer* dest, size_t len_size);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.