Skip to content

ASN: fix so that NO_CERTS configurations work#6551

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:asn_no_certs
Jul 3, 2023
Merged

ASN: fix so that NO_CERTS configurations work#6551
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:asn_no_certs

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

@SparkiDev SparkiDev commented Jun 28, 2023

Description

Moved code around and update #ifdefs so that --enable-cryptonly CFLAGS=-DNO_CERTS compiles.

Testing

./configure --enable-cryptonly CFLAGS=-DNO_CERTS
./configure --enable-cryptonly CFLAGS=-DNO_CERTS --enable-asn=original

Checklist

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

@SparkiDev SparkiDev self-assigned this Jun 28, 2023
@SparkiDev SparkiDev force-pushed the asn_no_certs branch 3 times, most recently from e77efd1 to 5022451 Compare June 29, 2023 00:23
@SparkiDev SparkiDev assigned dgarske and unassigned SparkiDev Jun 30, 2023
Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

The test ./configure cases you provided don't link. Looks like the PKCS12 gets enabled by default on some platforms. Builds fine if I add --disable-pkcs12. Do you want to fix that or should we just update the test description?

./configure --enable-cryptonly CFLAGS=-DNO_CERTS --enable-asn=original && make

  CCLD     src/libwolfssl.la
Undefined symbols for architecture x86_64:
  "_FreeDecodedCert", referenced from:
      _wc_PKCS12_parse in src_libwolfssl_la-pkcs12.o
  "_InitDecodedCert", referenced from:
      _wc_PKCS12_parse in src_libwolfssl_la-pkcs12.o
  "_ParseCertRelative", referenced from:
      _wc_PKCS12_parse in src_libwolfssl_la-pkcs12.o

@dgarske dgarske assigned SparkiDev and unassigned dgarske Jun 30, 2023
@kojo1
Copy link
Copy Markdown
Contributor

kojo1 commented Jul 1, 2023

Can you take care of RSA-PSS? The ticket user #16359 uses the option.

./configure CFLAGS=-DNO_CERTS --enable-cryptonly --enable-rsapss --enable-asn=original
./configure CFLAGS=-DNO_CERTS --enable-cryptonly --enable-rsapss

Moved code around and update #ifdefs so that --enable-cryptonly
CFLAGS=-DNO_CERTS compiles.
@SparkiDev
Copy link
Copy Markdown
Contributor Author

Fixed all the configuration mentioned above.

@SparkiDev SparkiDev assigned dgarske and kojo1 and unassigned SparkiDev Jul 3, 2023
@dgarske dgarske merged commit 732ef09 into wolfSSL:master Jul 3, 2023
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