Skip to content

Update EBSNET port#6410

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
embhorn:zd15856
Jun 22, 2023
Merged

Update EBSNET port#6410
dgarske merged 1 commit intowolfSSL:masterfrom
embhorn:zd15856

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented May 15, 2023

Description

Updates to EBSNET port
Author: Sarah Richardson

Fixes zd15856

Testing

Customer tested

Checklist

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

@embhorn embhorn self-assigned this May 15, 2023
@embhorn embhorn requested a review from dgarske May 15, 2023 14:22
@embhorn
Copy link
Copy Markdown
Member Author

embhorn commented May 15, 2023

@dgarske - Sarah has asked me to open this PR on her behalf. I will request approval for the contributor agreement after your cursory review.

@embhorn
Copy link
Copy Markdown
Member Author

embhorn commented May 16, 2023

retest this please

@embhorn
Copy link
Copy Markdown
Member Author

embhorn commented Jun 2, 2023

@dgarske - customer is approved as a contributor. This PR is ready for review.

@dgarske dgarske assigned dgarske and unassigned embhorn Jun 20, 2023
Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add static.

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add explicit cast to int

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move while brace up while() {

Comment thread examples/configs/user_settings_EBSnet.h Outdated
Comment thread wolfcrypt/src/random.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should not assume RTPLATFORM is always defined. Should this be #if defined(HAVE_RTP_SYS) || defined(RTPLATFORM). Otherwise if RTPLATFORM is not defined it will be a compiler error. If RTPLATFORM is also an expression like RTPLATFORM != 0 please add it explicit.

@dgarske dgarske assigned embhorn and unassigned dgarske Jun 21, 2023
@embhorn embhorn requested a review from dgarske June 21, 2023 19:37
@embhorn embhorn assigned dgarske and unassigned embhorn Jun 21, 2023
Comment thread wolfssl/wolfcrypt/wc_port.h Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also here. Please check that it is defined.

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You missed a few places where RTPLATFORM is used without checking if defined. Perhaps it is safe to assume if EBSNET is defined that RTPLATFORM is always defined?

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Check indent.

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also here. Make sure 4 spaces and no tabs.

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Bring function ident back to align with strcasecmp?

Comment thread wolfcrypt/src/wc_port.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the ident on all functions in this group should be 4 spaces back.

@dgarske dgarske assigned embhorn and unassigned dgarske Jun 21, 2023
@embhorn embhorn requested a review from dgarske June 21, 2023 20:40
@embhorn embhorn assigned dgarske and unassigned embhorn Jun 21, 2023
@dgarske
Copy link
Copy Markdown
Member

dgarske commented Jun 22, 2023

Retest this please

@dgarske dgarske merged commit 3cb0b4a into wolfSSL:master Jun 22, 2023
@embhorn embhorn deleted the zd15856 branch April 24, 2026 21:32
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.

2 participants