1 (edited by mohammad.abomokh 2017-03-22 02:53:03)

Topic: certificate date validation

Hi,

does wolfSSL library supports (or in the near future) adding a user callblack for time?
i'm asking because i want to implement my own time getter function and it will be easier to add it in run
time.

as i see the current code support porting the time functions to the user functoin.
the main usage is for certificate date validations.

Thanks

Share

Re: certificate date validation

HI mohammad.abomokh,

Have you noticed in <wolfssl-root>/wolfssl/wolfcrypt/settings.h we have an example for the arduino users who have to do something similar. We have them define TIME_OVERRIDES and then define XTIME and XGMTIME to their own custom functions.

#define TIME_OVERRIDES /* must define XTIME and XGMTIME externally */

/* then you would do something like */
#define XTIME <my custom function>
#define XGMTIME <my custom function2>

Regards,

Kaleb

Re: certificate date validation

Thanks a lot Kaleb for the quick and helpful response smile

Share

Re: certificate date validation

mohammad.abomokh,


No problem, always happy to help!


- Kaleb