mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
Make our cert/key more compact + fix small typo
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@50 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -88,7 +88,7 @@ namespace axTLS
|
|||||||
/**
|
/**
|
||||||
* @brief Get the session id for a handshake.
|
* @brief Get the session id for a handshake.
|
||||||
*
|
*
|
||||||
* This will be a 32 byte sequence and is availabile after the first
|
* This will be a 32 byte sequence and is available after the first
|
||||||
* handshaking messages are sent.
|
* handshaking messages are sent.
|
||||||
* @return The session id as a 32 byte sequence.
|
* @return The session id as a 32 byte sequence.
|
||||||
* @note A SSLv23 handshake may have only 16 valid bytes.
|
* @note A SSLv23 handshake may have only 16 valid bytes.
|
||||||
|
@ -88,7 +88,7 @@ public class SSL
|
|||||||
/**
|
/**
|
||||||
* @brief Get the session id for a handshake.
|
* @brief Get the session id for a handshake.
|
||||||
*
|
*
|
||||||
* This will be a 32 byte sequence and is availabile after the first
|
* This will be a 32 byte sequence and is available after the first
|
||||||
* handshaking messages are sent.
|
* handshaking messages are sent.
|
||||||
* @return The session id as a 32 byte sequence.
|
* @return The session id as a 32 byte sequence.
|
||||||
* @note A SSLv23 handshake may have only 16 valid bytes.
|
* @note A SSLv23 handshake may have only 16 valid bytes.
|
||||||
|
@ -134,7 +134,7 @@ void bi_terminate(BI_CTX *ctx)
|
|||||||
* @brief Increment the number of references to this object.
|
* @brief Increment the number of references to this object.
|
||||||
* It does not do a full copy.
|
* It does not do a full copy.
|
||||||
* @param bi [in] The bigint to copy.
|
* @param bi [in] The bigint to copy.
|
||||||
* @return A referent to the same bigint.
|
* @return A reference to the same bigint.
|
||||||
*/
|
*/
|
||||||
bigint *bi_copy(bigint *bi)
|
bigint *bi_copy(bigint *bi)
|
||||||
{
|
{
|
||||||
|
@ -69,8 +69,9 @@ void RC4_crypt(RC4_CTX *ctx, const uint8_t *msg, uint8_t *out, int length)
|
|||||||
|
|
||||||
for (i = 0; i < length; i++)
|
for (i = 0; i < length; i++)
|
||||||
{
|
{
|
||||||
x =(uint8_t)(x + 1); a = m[x];
|
x = (uint8_t)(x + 1);
|
||||||
y =(uint8_t)(y + a);
|
a = m[x];
|
||||||
|
y = (uint8_t)(y + a);
|
||||||
m[x] = b = m[y];
|
m[x] = b = m[y];
|
||||||
m[y] = a;
|
m[y] = a;
|
||||||
out[i] ^= m[(uint8_t)(a + b)];
|
out[i] ^= m[(uint8_t)(a + b)];
|
||||||
|
@ -165,7 +165,7 @@ extern "C" {
|
|||||||
* call to ssl_verify_cert().
|
* call to ssl_verify_cert().
|
||||||
* - SSL_CLIENT_AUTHENTICATION (server only): Enforce client authentication
|
* - SSL_CLIENT_AUTHENTICATION (server only): Enforce client authentication
|
||||||
* i.e. each handshake will include a "certificate request" message from the
|
* i.e. each handshake will include a "certificate request" message from the
|
||||||
* server. Only availabile if verification has been enabled.
|
* server. Only available if verification has been enabled.
|
||||||
* - SSL_NO_DEFAULT_KEY: Don't use the default key/certificate. The user will
|
* - SSL_NO_DEFAULT_KEY: Don't use the default key/certificate. The user will
|
||||||
* load the key/certificate explicitly.
|
* load the key/certificate explicitly.
|
||||||
* - SSL_DISPLAY_BYTES (full mode build only): Display the byte sequences
|
* - SSL_DISPLAY_BYTES (full mode build only): Display the byte sequences
|
||||||
@ -272,7 +272,7 @@ EXP_FUNC SSL * STDCALL ssl_find(SSLCTX *ssl_ctx, int client_fd);
|
|||||||
/**
|
/**
|
||||||
* @brief Get the session id for a handshake.
|
* @brief Get the session id for a handshake.
|
||||||
*
|
*
|
||||||
* This will be a 32 byte sequence and is availabile after the first
|
* This will be a 32 byte sequence and is available after the first
|
||||||
* handshaking messages are sent.
|
* handshaking messages are sent.
|
||||||
* @param ssl [in] An SSL object reference.
|
* @param ssl [in] An SSL object reference.
|
||||||
* @return The session id as a 32 byte sequence.
|
* @return The session id as a 32 byte sequence.
|
||||||
|
@ -28,7 +28,9 @@
|
|||||||
|
|
||||||
/* Don't import the default key/certificate if not used */
|
/* Don't import the default key/certificate if not used */
|
||||||
#if defined(CONFIG_SSL_USE_DEFAULT_KEY) || defined(CONFIG_SSL_SKELETON_MODE)
|
#if defined(CONFIG_SSL_USE_DEFAULT_KEY) || defined(CONFIG_SSL_SKELETON_MODE)
|
||||||
|
static const /* saves a few bytes and RAM */
|
||||||
#include "cert.h"
|
#include "cert.h"
|
||||||
|
static const /* saves a few more bytes */
|
||||||
#include "private_key.h"
|
#include "private_key.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user