Skip to content

Block cert modification in callbacks based on new flag - #11203

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:sni-callback-detect-cert
Open

Block cert modification in callbacks based on new flag#11203
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:sni-callback-detect-cert

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Description

Prevent the user from modifying certificates when those buffers are aliased across WOLFSSL and WOLFSSL_CTX objects. Specifically, the wolfSSL_CTX_use_certificate* and wolfSSL_CTX_user_PrivateKey* API families (and a few other one-offs) are blocked.

This is yet another approach to solving zd 22107

Testing

Added unit tests.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@padelsbach
padelsbach force-pushed the sni-callback-detect-cert branch from 7336dee to e3deb50 Compare August 19, 2026 20:27
@padelsbach
padelsbach marked this pull request as ready for review August 19, 2026 20:27
@github-actions

Copy link
Copy Markdown

retest this please

@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

gcc-arm-cortex-m3

  • FLASH: .text +60 B (+0.0%, 123,919 B / 262,144 B, total: 47% used)
  • RAM: .bss +4 B (+0.5%, 820 B / 65,536 B, total: 1% used)

gcc-arm-cortex-m4

  • FLASH: .text +64 B (+0.0%, 202,415 B / 262,144 B, total: 77% used)
  • RAM: .bss +4 B (+0.5%, 840 B / 65,536 B, total: 1% used)

gcc-arm-cortex-m4-dtls13

  • FLASH: .text +64 B (+0.0%, 183,740 B / 1,048,576 B, total: 18% used)
  • RAM: .bss +4 B (+0.5%, 856 B / 262,144 B, total: 0% used)

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .rodata +16 B, .text +128 B (+0.0%, 776,684 B / 1,048,576 B, total: 74% used)
  • RAM: .bss +8 B (+0.0%, 136,952 B / 262,144 B, total: 52% used)

gcc-arm-cortex-m4-pq

  • FLASH: .text +128 B (+0.0%, 298,076 B / 1,048,576 B, total: 28% used)

gcc-arm-cortex-m4-rsa-only

  • FLASH: .text +64 B (+0.0%, 328,624 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m4-tls12

  • FLASH: .text +64 B (+0.1%, 124,723 B / 262,144 B, total: 48% used)
  • RAM: .bss +4 B (+0.5%, 820 B / 65,536 B, total: 1% used)

gcc-arm-cortex-m4-tls13

  • FLASH: .text +64 B (+0.0%, 238,817 B / 262,144 B, total: 91% used)

gcc-arm-cortex-m7

  • FLASH: .text +64 B (+0.0%, 202,415 B / 262,144 B, total: 77% used)
  • RAM: .bss +4 B (+0.5%, 840 B / 65,536 B, total: 1% used)

gcc-arm-cortex-m7-pq

  • FLASH: .text +64 B (+0.0%, 298,972 B / 1,048,576 B, total: 29% used)

gcc-arm-cortex-m7-tls13

  • FLASH: .text +64 B (+0.0%, 238,881 B / 262,144 B, total: 91% used)

linuxkm-standard

@padelsbach

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant