Skip to content

TLS examples requires --enable-writedup #62

@dgarske

Description

@dgarske

The make fails if the write-dup feature is not enabled. Can we change this so it builds with a main() stub and printf an error at run-time instead of failing build-time with #error. This will allow other TLS examples to build and run.

gcc -o client-tls-writedup client-tls-writedup.c -Wall -I/usr/local/include -Os -pthread -L/usr/local/lib -lm -lwolfssl
client-tls-writedup.c:43:6: error: #error "wolfSSL must be configured and installed with --enable-writedup"
     #error "wolfSSL must be configured and installed with --enable-writedup"
      ^~~~~
make: *** [client-tls-writedup] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions