forked from wolfSSL/wolfssl
removed more tabs
This commit is contained in:
@ -12671,7 +12671,7 @@ int openssl_pkey0_test(void)
|
|||||||
printf("error with encrypt init\n");
|
printf("error with encrypt init\n");
|
||||||
return ERR_BASE_PKEY-17;
|
return ERR_BASE_PKEY-17;
|
||||||
}
|
}
|
||||||
XMEMSET(out, 0, sizeof(out));
|
XMEMSET(out, 0, sizeof(out));
|
||||||
ret = EVP_PKEY_encrypt(enc, out, &outlen, in, sizeof(in));
|
ret = EVP_PKEY_encrypt(enc, out, &outlen, in, sizeof(in));
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
printf("error encrypting msg\n");
|
printf("error encrypting msg\n");
|
||||||
@ -12680,7 +12680,7 @@ int openssl_pkey0_test(void)
|
|||||||
|
|
||||||
show("encrypted msg", out, outlen);
|
show("encrypted msg", out, outlen);
|
||||||
|
|
||||||
XMEMSET(plain, 0, sizeof(plain));
|
XMEMSET(plain, 0, sizeof(plain));
|
||||||
ret = EVP_PKEY_decrypt(dec, plain, &outlen, out, keySz);
|
ret = EVP_PKEY_decrypt(dec, plain, &outlen, out, keySz);
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
printf("error decrypting msg\n");
|
printf("error decrypting msg\n");
|
||||||
@ -12717,7 +12717,7 @@ int openssl_pkey0_test(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
XMEMSET(out, 0, sizeof(out));
|
XMEMSET(out, 0, sizeof(out));
|
||||||
ret = EVP_PKEY_encrypt(enc, out, &outlen, in, sizeof(in));
|
ret = EVP_PKEY_encrypt(enc, out, &outlen, in, sizeof(in));
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
printf("error encrypting msg\n");
|
printf("error encrypting msg\n");
|
||||||
@ -12726,7 +12726,7 @@ int openssl_pkey0_test(void)
|
|||||||
|
|
||||||
show("encrypted msg", out, outlen);
|
show("encrypted msg", out, outlen);
|
||||||
|
|
||||||
XMEMSET(plain, 0, sizeof(plain));
|
XMEMSET(plain, 0, sizeof(plain));
|
||||||
ret = EVP_PKEY_decrypt(dec, plain, &outlen, out, keySz);
|
ret = EVP_PKEY_decrypt(dec, plain, &outlen, out, keySz);
|
||||||
if (ret != 1) {
|
if (ret != 1) {
|
||||||
printf("error decrypting msg\n");
|
printf("error decrypting msg\n");
|
||||||
|
@ -639,7 +639,7 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
|
|||||||
if (addr == NULL)
|
if (addr == NULL)
|
||||||
err_sys("invalid argument to build_addr, addr is NULL");
|
err_sys("invalid argument to build_addr, addr is NULL");
|
||||||
|
|
||||||
XMEMSET(addr, 0, sizeof(SOCKADDR_IN_T));
|
XMEMSET(addr, 0, sizeof(SOCKADDR_IN_T));
|
||||||
|
|
||||||
#ifndef TEST_IPV6
|
#ifndef TEST_IPV6
|
||||||
/* peer could be in human readable form */
|
/* peer could be in human readable form */
|
||||||
@ -692,7 +692,7 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
|
|||||||
int ret;
|
int ret;
|
||||||
char strPort[80];
|
char strPort[80];
|
||||||
|
|
||||||
XMEMSET(&hints, 0, sizeof(hints));
|
XMEMSET(&hints, 0, sizeof(hints));
|
||||||
|
|
||||||
hints.ai_family = AF_INET_V;
|
hints.ai_family = AF_INET_V;
|
||||||
if (udp) {
|
if (udp) {
|
||||||
@ -1852,14 +1852,14 @@ static INLINE void SetupAtomicUser(WOLFSSL_CTX* ctx, WOLFSSL* ssl)
|
|||||||
encCtx = (AtomicEncCtx*)malloc(sizeof(AtomicEncCtx));
|
encCtx = (AtomicEncCtx*)malloc(sizeof(AtomicEncCtx));
|
||||||
if (encCtx == NULL)
|
if (encCtx == NULL)
|
||||||
err_sys("AtomicEncCtx malloc failed");
|
err_sys("AtomicEncCtx malloc failed");
|
||||||
XMEMSET(encCtx, 0, sizeof(AtomicEncCtx));
|
XMEMSET(encCtx, 0, sizeof(AtomicEncCtx));
|
||||||
|
|
||||||
decCtx = (AtomicDecCtx*)malloc(sizeof(AtomicDecCtx));
|
decCtx = (AtomicDecCtx*)malloc(sizeof(AtomicDecCtx));
|
||||||
if (decCtx == NULL) {
|
if (decCtx == NULL) {
|
||||||
free(encCtx);
|
free(encCtx);
|
||||||
err_sys("AtomicDecCtx malloc failed");
|
err_sys("AtomicDecCtx malloc failed");
|
||||||
}
|
}
|
||||||
XMEMSET(decCtx, 0, sizeof(AtomicDecCtx));
|
XMEMSET(decCtx, 0, sizeof(AtomicDecCtx));
|
||||||
|
|
||||||
wolfSSL_CTX_SetMacEncryptCb(ctx, myMacEncryptCb);
|
wolfSSL_CTX_SetMacEncryptCb(ctx, myMacEncryptCb);
|
||||||
wolfSSL_SetMacEncryptCtx(ssl, encCtx);
|
wolfSSL_SetMacEncryptCtx(ssl, encCtx);
|
||||||
|
Reference in New Issue
Block a user