diff --git a/src/ssl.c b/src/ssl.c index a4015ba29..744bdfb26 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -6173,7 +6173,7 @@ int SetCAType(WOLFSSL_CERT_MANAGER* cm, byte* hash, int type) #endif if (XMEMCMP(hash, subjectHash, SIGNER_DIGEST_SIZE) == 0) { - current->type = type; + current->type = (byte)type; ret = WOLFSSL_SUCCESS; break; }