early data and enc-then-mac build fixes

This commit is contained in:
Jacob Barthelmeh
2019-09-26 12:12:19 +07:00
parent bcd8a521f5
commit 8139fbd026

View File

@ -3099,6 +3099,7 @@ void* wolfSSL_GetDecryptVerifyCtx(WOLFSSL* ssl)
return NULL; return NULL;
} }
#ifdef HAVE_ENCRYPT_THEN_MAC
/** /**
* Set the callback, against the context, that encrypts then MACs. * Set the callback, against the context, that encrypts then MACs.
* *
@ -3175,6 +3176,7 @@ void* wolfSSL_GetVerifyDecryptCtx(WOLFSSL* ssl)
return NULL; return NULL;
} }
#endif /* HAVE_ENCRYPT_THEN_MAC */
@ -26106,7 +26108,7 @@ int wolfSSL_i2d_SSL_SESSION(WOLFSSL_SESSION* sess, unsigned char** p)
#endif #endif
#endif #endif
#ifdef WOLFSSL_EARLY_DATA #ifdef WOLFSSL_EARLY_DATA
c32toa(sess->maxEarlyDataSz); c32toa(sess->maxEarlyDataSz, data + idx);
idx += OPAQUE32_LEN; idx += OPAQUE32_LEN;
#endif #endif
#endif #endif