Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apps/crypto: support openssl wrappers by mbedtls #2784

Merged
merged 7 commits into from
Oct 27, 2024

Commits on Oct 27, 2024

  1. apps/crypto: Add project openssl_mbedtls_wrapper

    Add openssl mbedtls wrapper project
    
    Signed-off-by: yanghuatao <[email protected]>
    yanghuatao authored and makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    c51d3b8 View commit details
    Browse the repository at this point in the history
  2. openssl_mbedtls_wrapper: add ssl wrapper from libwebsockets

    Signed-off-by: makejian <[email protected]>
    makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    4d215a9 View commit details
    Browse the repository at this point in the history
  3. fix build warning.

    CC:  vfs/fs_lseek.c /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c: In function ‘HMAC_CTX_new’:
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
       57 |       (mbedtls_md_context_t *)malloc(sizeof(mbedtls_md_context_t));
          |                               ^~~~~~
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:28:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
       27 | #include <mbedtls/hmac_drbg.h>
      +++ |+#include <stdlib.h>
       28 | #include <mbedtls/md.h>
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
       57 |       (mbedtls_md_context_t *)malloc(sizeof(mbedtls_md_context_t));
          |                               ^~~~~~
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c: In function ‘HMAC_CTX_free’:
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
      126 |   free(ctx);
          |   ^~~~
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
    /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    
    Signed-off-by: cuiziwei <[email protected]>
    cuiziweizw authored and makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    2d30a01 View commit details
    Browse the repository at this point in the history
  4. openssl_mbedtls_wrapper: support X509_new()

    Signed-off-by: makejian <[email protected]>
    makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    995aec4 View commit details
    Browse the repository at this point in the history
  5. openssl_mbedtls_wrapper: Implement SHA1 Interface

    Signed-off-by: makejian <[email protected]>
    makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    526348c View commit details
    Browse the repository at this point in the history
  6. cmake:add openssl_mbedtls_wrapper cmake build support

    Signed-off-by: xuxin19 <[email protected]>
    xuxin930 authored and makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    963c443 View commit details
    Browse the repository at this point in the history
  7. mbedtls: compile warning fix

    - apps/crypto/openssl_mbedtls_wrapper/mbedtls/err.c
    - apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c
    
    Signed-off-by: makejian <[email protected]>
    makejian committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    8e55b33 View commit details
    Browse the repository at this point in the history