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

20240418-exosip-apis #7648

Merged
merged 21 commits into from
Jul 17, 2024
Merged

20240418-exosip-apis #7648

merged 21 commits into from
Jul 17, 2024

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    685bfd1 View commit details
    Browse the repository at this point in the history
  2. add stub implementations of wolfSSL_COMP_get_name(), wolfSSL_get_curr…

    …ent_compression(), and wolfSSL_get_current_expansion(), and add compat layer shim macros for them.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    198f403 View commit details
    Browse the repository at this point in the history
  3. add ASN_ prefixes to ISSUER, SUBJECT, BEFORE, and AFTER enum constant…

    …s defined in wolfssl/wolfcrypt/asn.h.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    41efa04 View commit details
    Browse the repository at this point in the history
  4. add wolfSSL_set_rbio, wolfSSL_set_wbio, wolfSSL_BIO_number_read, wolf…

    …SSL_BIO_number_written, and compat layer shim macros SSL_set0_rbio, SSL_set0_wbio, BIO_number_read, BIO_number_written, BIO_reset.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    1e78101 View commit details
    Browse the repository at this point in the history
  5. add wolfSSL_i2d_X509_PUBKEY, wolfSSL_X509_VERIFY_PARAM_lookup, and wo…

    …lfSSL_X509_STORE_get0_param, and make wolfSSL_X509_VERIFY_PARAM_inherit a public API; add macros to openssl compat layer: DTLS_client_method, DTLS_server_method, X509_VERIFY_PARAM_lookup, X509_VERIFY_PARAM_inherit, X509_STORE_get0_param; add "const char *name" slot to struct WOLFSSL_X509_VERIFY_PARAM to support wolfSSL_X509_VERIFY_PARAM_lookup.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    8468a70 View commit details
    Browse the repository at this point in the history
  6. checkpoint progress: add wolfSSL_BIO_s_dgram, wolfSSL_BIO_new_dgram, …

    …WOLFSSL_BIO_DGRAM, and remove now-duplicate prototype and definition of wolfSSL_X509_STORE_get0_param.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    3f921e0 View commit details
    Browse the repository at this point in the history
  7. checkpoint progress: add macro definitions for BIO_CTRL_DGRAM_SET_CON…

    …NECTED, BIO_CTRL_DGRAM_SET_PEER, WOLFSSL_MULTI_LABEL_WILDCARDS, WOLFSSL_MULTI_LABEL_WILDCARDS, NID_id_GostR3410_2001, NID_id_GostR3410_2012_256, NID_id_GostR3410_2012_512; fix flag arithmetic in wolfSSL_X509_check_host(); add compat macros for i2d_X509_PUBKEY, BIO_new_dgram.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0894086 View commit details
    Browse the repository at this point in the history
  8. checkpoint: add WOLFSSL_BIO_ADDR, wolfSSL_BIO_ADDR_new(), wolfSSL_BIO…

    …_ADDR_free(), wolfSSL_BIO_ADDR_clear(), wolfIO_SendTo(), wolfIO_RecvFrom(); fix name of wolfSSL_BIO_s_datagram().
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    29ec038 View commit details
    Browse the repository at this point in the history
  9. checkpoint: add wolfSSL_BIO_ADDR_free to wolfSSL_BIO_free(); tweak EX…

    …PECT_SUCCESS() to tolerate TEST_SKIPPED; add WIP test_wolfSSL_BIO_datagram.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    bd7f7c8 View commit details
    Browse the repository at this point in the history
  10. checkpoint: complete test_wolfSSL_BIO_datagram(); fix some WOLFSSL_HA…

    …VE_BIO_ADDR gates to also gate on WOLFSSL_DTLS and OPENSSL_EXTRA; use DTLS_RECVFROM_FUNCTION, DTLS_SENDTO_FUNCTION, SOCKET_T, SOCKADDR, SOCKADDR_IN, and SOCKADDR_IN6 macros and types, and add SOCKADDR_UN type.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    7216a54 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2d370f3 View commit details
    Browse the repository at this point in the history
  12. wolfSSL_CTX_load_verify_locations(): set up with OpenSSL-compatible b…

    …ehavior (WOLFSSL_LOAD_FLAG_IGNORE_ERR).
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    62db353 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    61eb698 View commit details
    Browse the repository at this point in the history
  14. address peer review around WOLFSSL_HAVE_BIO_ADDR:

    refactor housekeeping for bio->bytes_read and bio->bytes_write, and add WOLFSSL_BIO_HAVE_FLOW_STATS gate;
    
    add WOLFSSL_BIO_FLAG_RETRY housekeeping for WOLFSSL_BIO_SOCKET and WOLFSSL_BIO_DGRAM;
    
    refactor WOLFSSL_BIO.peer_addr to be inline rather than a pointer;
    
    add wolfSSL_set_mtu_compat() and wolfSSL_CTX_load_verify_locations_compat() implementations;
    
    enable WOLFSSL_HAVE_BIO_ADDR and WOLFSSL_DTLS_MTU when OPENSSL_ALL.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0a928ea View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    51c49b6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1159fc3 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9e99544 View commit details
    Browse the repository at this point in the history
  18. src/bio.c: restore inadvertently removed update of bio->connected in …

    …wolfSSL_BIO_ctrl() case BIO_CTRL_DGRAM_SET_CONNECTED.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0c1163f View commit details
    Browse the repository at this point in the history
  19. fixes from peer review: move OS-specific code from wolfSSL_BIO_read()…

    … and wolfSSL_BIO_write() to wolfIO_Recv(), wolfIO_Send(), wolfIO_RecvFrom(), and wolfIO_SendTo(); add SOCKET_ETIMEDOUT definitions to wolfio.h; misc cleanups.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    5298039 View commit details
    Browse the repository at this point in the history
  20. BIO/wolfio: refactor TranslateReturnCode(), wolfSSL_LastError(), and …

    …TranslateIoError() into complete+consistent wolfSSL_LastError() and TranslateIoReturnCode(), handling all special cases correctly, and correctly returning WOLFSSL_CBIO_ERR_WANT_WRITE and WOLFSSL_CBIO_ERR_TIMEOUT. use TranslateIoReturnCode() directly in wolfIO_Recv(), wolfIO_Send(), wolfIO_RecvFrom(), wolfIO_SendTo(), and remove now-superfluous TranslateIoError() calls from EmbedReceive(), EmbedSend(), EmbedReceiveFrom(), EmbedSendTo(), EmbedReceiveFromMcast().
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    9023aee View commit details
    Browse the repository at this point in the history
  21. PR7648 20240418-exosip-apis peer review:

    * tweak typography;
    * move wolfSSL_i2d_X509_PUBKEY() from ssl.c to x509.c;
    * in asn.h, add !NO_ASN_OLD_TYPE_NAMES macros to remap old names (ISSUER, SUBJECT, BEFORE, AFTER) by default unless the macros are already defined.
    douzzer committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    ee7748f View commit details
    Browse the repository at this point in the history