Skip to content

ssl.c: Move code out and some fixes#10926

Open
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:extract_funcs_ssl_2
Open

ssl.c: Move code out and some fixes#10926
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:extract_funcs_ssl_2

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

ssl_api_hs.c: Handhshake code
ssl_api_rw.c: Reading and writing
ssl_err.c: wolfSSL_ERR API
ssl_asn1.c: Moved wolfSSL_OBJ API in. Move nid2oid/oid2nid in. ssl_crypt.c: Moved in wolfSSL_RAND API.
ssl_api_cert.c, ssl_api_pk.c, ssl_api_dtls.c, ssl_api_crl_osp.c:
Added more functions that were clearly in those areas.

Fixed nid2oid/oid2nid to use wolfssl_object_info[]. wolfssl_object_info has calculated start and ends of groups for faster lookup. Re-ordered the list within groups for faster lookup. Removed duplicate OID row - WC_NID_userId, WC_NID_userId. Added entries that were only in nid2oidi/oid2nid:

  • ED25510, Ed448, CSR entries

AddSession was declared before HAVE_GLOBAL_RNG was defined - moved global RNG code.

Testing

Regression tested OpenSSL API

@SparkiDev SparkiDev self-assigned this Jul 16, 2026
@SparkiDev SparkiDev force-pushed the extract_funcs_ssl_2 branch from 27ab328 to 49f9adb Compare July 16, 2026 06:25
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .rodata +80 B, .text -2,752 B (-0.3%, 768,884 B / 1,048,576 B, total: 73% used)
  • RAM: .bss +192 B (+0.1%, 136,936 B / 262,144 B, total: 52% used)

gcc-arm-cortex-m7-pq

  • FLASH: .text -64 B (-0.0%, 280,312 B / 1,048,576 B, total: 27% used)

linuxkm-standard

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10926

Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src

Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/ssl_asn1.c Outdated
Comment thread src/ssl_asn1.c
Comment thread src/ssl_api_crl_ocsp.c
@SparkiDev SparkiDev force-pushed the extract_funcs_ssl_2 branch from 49f9adb to 0b2e533 Compare July 16, 2026 06:53
Comment thread src/ssl_api_crl_ocsp.c
Comment thread src/ssl_asn1.c
Comment thread src/ssl_asn1.c Outdated

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10926

Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@SparkiDev

SparkiDev commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

FIPS-ready FAILED
Aborted x2

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Jul 16, 2026
@SparkiDev SparkiDev requested a review from wolfSSL-Bot July 16, 2026 12:16
ssl_api_hs.c: Handhshake code
ssl_api_rw.c: Reading and writing
ssl_err.c: wolfSSL_ERR API
ssl_asn1.c: Moved wolfSSL_OBJ API in. Move nid2oid/oid2nid in.
ssl_crypt.c: Moved in wolfSSL_RAND API.
ssl_api_cert.c, ssl_api_pk.c, ssl_api_dtls.c, ssl_api_crl_osp.c:
  Added more functions that were clearly in those areas.

Fixed nid2oid/oid2nid to use wolfssl_object_info[].
wolfssl_object_info has calculated start and ends of groups for faster lookup.
Re-ordered the list within groups for faster lookup.
Removed duplicate OID row - WC_NID_userId, WC_NID_userId.
Added entries that were only in nid2oidi/oid2nid:
  - ED25510, Ed448, CSR entries

AddSession was declared before HAVE_GLOBAL_RNG was defined - moved global RNG
code.
@SparkiDev SparkiDev force-pushed the extract_funcs_ssl_2 branch from 0b2e533 to a3babcf Compare July 16, 2026 22:42
@SparkiDev SparkiDev self-assigned this Jul 16, 2026
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.

3 participants