Browse Source

fix for warning of no stdint.h include with uintptr_t

JacobBarthelmeh 1 month ago
parent
commit
9f240bb34c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/ssl.c
  2. 1 1
      src/tls.c

+ 1 - 1
src/ssl.c

@@ -1517,7 +1517,7 @@ void wolfSSL_free(WOLFSSL* ssl)
     WOLFSSL_ENTER("wolfSSL_free");
 
     if (ssl) {
-        WOLFSSL_MSG_EX("Free SSL: %p", (uintptr_t)ssl);
+        WOLFSSL_MSG_EX("Free SSL: %p", (wc_ptr_t)ssl);
         FreeSSL(ssl, ssl->ctx->heap);
     }
     else {

+ 1 - 1
src/tls.c

@@ -7480,7 +7480,7 @@ static int TLSX_KeyShare_GenEccKey(WOLFSSL *ssl, KeyShareEntry* kse)
         kse->key = (byte*)XMALLOC(sizeof(ecc_key), ssl->heap, DYNAMIC_TYPE_ECC);
         if (kse->key == NULL) {
             WOLFSSL_MSG_EX("Failed to allocate %d bytes, ssl->heap: %p",
-                           (int)sizeof(ecc_key), (uintptr_t)ssl->heap);
+                           (int)sizeof(ecc_key), (wc_ptr_t)ssl->heap);
             WOLFSSL_MSG("EccTempKey Memory error!");
             return MEMORY_E;
         }