GithubHelp home page GithubHelp logo

Comments (2)

johandc avatar johandc commented on June 15, 2024

csp_autoconfig.h is an automatically generated configuration file. It's made by the 'waf' buildsystem, based on your configuration parameters. Normal build procedure is "./waf configure build". (Read more about building here: https://github.com/GomSpace/libcsp/wiki/Compiling-CSP)

If you would like to compile HMAC as standalone, without being integrated with the library, you should remove the references to csp_autoconfig.h and the #ifdef's in the code files.

Here is the typical contents of a config:

#define GIT_REV "46d67426"
/* #undef CSP_FREERTOS /
/
#undef CSP_POSIX /
#define CSP_WINDOWS 1
/
#undef CSP_MACOSX /
#define CSP_DEBUG 1
/
#undef CSP_USE_RDP /
/
#undef CSP_USE_CRC32 /
/
#undef CSP_USE_HMAC /
/
#undef CSP_USE_XTEA /
/
#undef CSP_USE_PROMISC /
/
#undef CSP_USE_QOS /
/
#undef CSP_BUFFER_STATIC /
#define CSP_BUFFER_COUNT 12
#define CSP_BUFFER_SIZE 320
#define CSP_CONN_MAX 10
#define CSP_CONN_QUEUE_LENGTH 100
#define CSP_FIFO_INPUT 10
#define CSP_MAX_BIND_PORT 31
#define CSP_RDP_MAX_WINDOW 20
#define CSP_PADDING_BYTES 8
#define CSP_LITTLE_ENDIAN 1
/
#undef CSP_BIG_ENDIAN */

I believe that the define that the hmac files are looking at is:
CSP_USE_HMAC

Regards,
Johan.

from libcsp.

sandesh9 avatar sandesh9 commented on June 15, 2024

Hi Johan,
Thank you the first option works.
regards,
Sandesh

from libcsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.