Fix a few internal name choices

This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-03 16:41:52 +02:00
parent df791a51f6
commit 6c7af4c200
3 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@
#endif
#if defined(POLARSSL_SSL_SERVER_NAME_INDICATION) && defined(POLARSSL_FS_IO)
#define POLARSSL_SNI
#define SNI_OPTION
#endif
#if defined(_WIN32)
@ -195,13 +195,13 @@
#define USAGE_CACHE ""
#endif /* POLARSSL_SSL_CACHE_C */
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
#define USAGE_SNI \
" sni=%%s name1,cert1,key1[,name2,cert2,key2[,...]]\n" \
" default: disabled\n"
#else
#define USAGE_SNI ""
#endif /* POLARSSL_SNI */
#endif /* SNI_OPTION */
#if defined(POLARSSL_SSL_MAX_FRAGMENT_LENGTH)
#define USAGE_MAX_FRAG_LEN \
@ -445,7 +445,7 @@ static int my_send( void *ctx, const unsigned char *buf, size_t len )
goto error; \
*p++ = '\0';
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
typedef struct _sni_entry sni_entry;
struct _sni_entry {
@ -556,7 +556,7 @@ int sni_callback( void *p_info, ssl_context *ssl,
return( -1 );
}
#endif /* POLARSSL_SNI */
#endif /* SNI_OPTION */
#if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED)
@ -739,7 +739,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_SSL_CACHE_C)
ssl_cache_context cache;
#endif
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
sni_entry *sni_info = NULL;
#endif
#if defined(POLARSSL_SSL_ALPN)
@ -1476,7 +1476,7 @@ int main( int argc, char *argv[] )
}
#endif
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
if( opt.sni != NULL )
{
polarssl_printf( " . Setting up SNI information..." );
@ -1490,7 +1490,7 @@ int main( int argc, char *argv[] )
polarssl_printf( " ok\n" );
}
#endif /* POLARSSL_SNI */
#endif /* SNI_OPTION */
/*
* 2. Setup the listening TCP socket
@ -1693,7 +1693,7 @@ int main( int argc, char *argv[] )
}
#endif
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
if( opt.sni != NULL )
ssl_set_sni( &ssl, sni_callback, sni_info );
#endif
@ -2201,7 +2201,7 @@ exit:
x509_crt_free( &srvcert2 );
pk_free( &pkey2 );
#endif
#if defined(POLARSSL_SNI)
#if defined(SNI_OPTION)
sni_free( sni_info );
#endif
#if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED)

View File

@ -169,7 +169,7 @@ ecp_check_pub_mx:POLARSSL_ECP_DP_M255:"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
ECP write binary #0 (zero, bad format)
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
ecp_write_binary:POLARSSL_ECP_DP_SECP192R1:"01":"01":"00":POLARSSL_ECP_PF_UNKNOWN:"00":1:POLARSSL_ERR_ECP_BAD_INPUT_DATA
ecp_write_binary:POLARSSL_ECP_DP_SECP192R1:"01":"01":"00":ECP_PF_UNKNOWN:"00":1:POLARSSL_ERR_ECP_BAD_INPUT_DATA
ECP write binary #1 (zero, uncompressed, buffer just fits)
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED

View File

@ -1,7 +1,7 @@
/* BEGIN_HEADER */
#include "mbedtls/ecp.h"
#define POLARSSL_ECP_PF_UNKNOWN -1
#define ECP_PF_UNKNOWN -1
/* END_HEADER */
/* BEGIN_DEPENDENCIES