1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

some typo fixes

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@43 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich 2006-11-29 01:47:26 +00:00
parent d521a68821
commit 3064f8d199
5 changed files with 15 additions and 22 deletions

View File

@ -10,7 +10,7 @@ config CONFIG_BINDINGS
help
axTLS supports language bindings in C#, VB.NET, Java and Perl.
Select Y here if you want to build the various bindings.
Select Y here if you want to build the various language bindings.
config CONFIG_CSHARP_BINDINGS
bool "Create C# bindings"
@ -78,8 +78,8 @@ config CONFIG_PERL_CORE
string "Location of Perl CORE"
default "c:\\perl\\lib\\CORE"
help:
I'm testing with:
"http://www.activestate.com/Products/ActivePerl" at the moment.
works with ActiveState
"http://www.activestate.com/Products/ActivePerl"
config CONFIG_PERL_LIB
string "Name of Perl Library"

View File

@ -200,7 +200,7 @@ sub parseFile
#===============================================================
# Determine which module to build from cammand-line options
# Determine which module to build from command-line options
use strict;
use Getopt::Std;

View File

@ -424,11 +424,7 @@ sub do_client
$res = axtlsp::ssl_handshake_status($ssl);
if ($res != $axtlsp::SSL_OK)
{
if (!$quiet)
{
axtlsp::ssl_display_error($res);
}
axtlsp::ssl_display_error($res) if !$quiet;
axtlsp::ssl_free($ssl);
exit 1;
}
@ -456,11 +452,7 @@ sub do_client
$res = axtlsp::ssl_handshake_status($ssl);
if ($res != $axtlsp::SSL_OK)
{
if (!$quiet)
{
axtlsp::ssl_display_error($res);
}
axtlsp::ssl_display_error($res) if not $quiet;
exit 1;
}

View File

@ -268,7 +268,9 @@ int pkcs12_decode(SSLCTX *ssl_ctx, SSLObjLoader *ssl_obj, const char *password)
/* work out the MAC start/end points (done on AuthSafes) */
auth_safes_start = offset;
auth_safes_end = offset;
asn1_skip_obj(buf, &auth_safes_end, ASN1_SEQUENCE);
if (asn1_skip_obj(buf, &auth_safes_end, ASN1_SEQUENCE) < 0)
goto error;
auth_safes_len = auth_safes_end - auth_safes_start;
auth_safes = malloc(auth_safes_len);
memcpy(auth_safes, &buf[auth_safes_start], auth_safes_len);
@ -315,9 +317,8 @@ int pkcs12_decode(SSLCTX *ssl_ctx, SSLObjLoader *ssl_obj, const char *password)
{
int cert_offset = key_offset;
asn1_skip_obj(cert, &cert_offset, ASN1_SEQUENCE);
if (asn1_next_obj(cert, &key_offset, ASN1_SEQUENCE) < 0 ||
if (asn1_skip_obj(cert, &cert_offset, ASN1_SEQUENCE) < 0 ||
asn1_next_obj(cert, &key_offset, ASN1_SEQUENCE) < 0 ||
asn1_skip_obj(cert, &key_offset, ASN1_OID) < 0 ||
asn1_next_obj(cert, &key_offset, ASN1_EXPLICIT_TAG) < 0 ||
asn1_next_obj(cert, &key_offset, ASN1_SEQUENCE) < 0 ||
@ -421,8 +422,9 @@ static int get_pbe_params(uint8_t *buf, int *offset,
static const uint8_t pbeSH1RC4[] = /* pbeWithSHAAnd128BitRC4 */
{ 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x0c, 0x01, 0x01 };
int i, len, ret = SSL_NOT_OK;
int i, len;
uint8_t *iter = NULL;
int error_code = SSL_ERROR_NOT_SUPPORTED;
/* Get the PBE type */
if (asn1_next_obj(buf, offset, ASN1_SEQUENCE) < 0 ||
@ -437,7 +439,6 @@ static int get_pbe_params(uint8_t *buf, int *offset,
#ifdef CONFIG_SSL_FULL_MODE
printf("Error: pkcs8/pkcs12 must use \"PBE-SHA1-RC4-128\"\n");
#endif
ret = SSL_ERROR_NOT_SUPPORTED;
goto error;
}
@ -462,10 +463,10 @@ static int get_pbe_params(uint8_t *buf, int *offset,
}
free(iter);
ret = SSL_OK; /* got here - we are ok */
error_code = SSL_OK; /* got here - we are ok */
error:
return ret;
return error_code;
}
#endif

Binary file not shown.