variable declaration location for VS and avoid empty struct

This commit is contained in:
Jacob Barthelmeh
2015-07-14 14:33:00 -06:00
parent 67fd0ebbd4
commit 7fba0d25f9
2 changed files with 12 additions and 11 deletions

View File

@ -14554,16 +14554,15 @@ int wolfSSL_PEM_write_DSAPrivateKey(FILE *fp, WOLFSSL_DSA *dsa,
unsigned char *kstr, int klen,
pem_password_cb *cb, void *u)
{
byte *der, *pem;
int derSz = 0, pemSz = 0;
(void)enc;
(void)kstr;
(void)klen;
(void)cb;
(void)u;
byte *der, *pem;
int derSz = 0, pemSz = 0;
WOLFSSL_MSG("wolfSSL_PEM_write_DSAPrivateKey");
if (fp == NULL || dsa == NULL || dsa->internal == NULL ||

View File

@ -90,15 +90,17 @@ typedef struct WOLFSSL_X509_EXTENSION WOLFSSL_X509_EXTENSION;
typedef struct WOLFSSL_ASN1_TIME WOLFSSL_ASN1_TIME;
typedef struct WOLFSSL_ASN1_INTEGER WOLFSSL_ASN1_INTEGER;
typedef struct WOLFSSL_ASN1_OBJECT WOLFSSL_ASN1_OBJECT;
typedef struct WOLFSSL_ASN1_STRING{
#ifdef HAVE_LIGHTY
char* data;
int length;
#endif
} WOLFSSL_ASN1_STRING;
typedef struct WOLFSSL_dynlock_value WOLFSSL_dynlock_value;
#ifdef HAVE_LIGHTY
typedef struct WOLFSSL_ASN1_STRING{
char* data;
int length;
} WOLFSSL_ASN1_STRING;
#else
typedef struct WOLFSSL_ASN1_STRING WOLFSSL_ASN1_STRING;
#endif
#define WOLFSSL_ASN1_UTCTIME WOLFSSL_ASN1_TIME
typedef struct WOLFSSL_EVP_PKEY {