[strongSwan] Place for a function in ipsec starter
Noel Kuntze
noel at familie-kuntze.de
Sun May 18 21:00:43 CEST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello list,
I'm trying to make the wait delay in invokecharon.c configurable, but because the time is in microseconds or miliseconds, I can't use lib->get_time().
That's why I want to write a function that takes times in the "amountSuffix" format like this: 1us, 1ms, 1s, 1m, 1h, 1d.
As you can see, the suffix is sometimes than one character wide. Where would I put such a function in the code?
Should I put it in invokecharon.c or should I extend the libstrongswan to include the function, although I only need it in starter?
Regards,
Noel Kuntze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJTeQNbAAoJEDg5KY9j7GZY6aMP/1Q1A26e6n6TJ7CrN2nZx0f2
dnb5b0Rh98tOKd1DkyheVLljb5qP0kY64ybcVY45M6lJ3LqT6ISokfhcPopByq/+
jBtvAb5i+Ff54mZo7bzUg8PakdWg/QcaYO07yFqOXPD6OFIgtsJRF/9pJ8bdsHB7
E2lmGUYh7q/dRZ9y9LPCWlLrpRxMMj8pSm7+FTC2geqAEuBu0pjH77A0LB5bY3o6
oH8VkBjWIDzC3RkrZoIR9XPWSgHYfm6DNXIrypQbASPaos69XkEWAiMmFPlnV56G
Fatvy1yP/BKHQzk/J73Oan4shMci9mIphFcTyMU821/2561eDhmSt6/3gCGNBkJz
3LS0vO+Jo/jpDG0RTZ3shMJ5D1/3MwXBYlhoBRW0d7fCbtdT8jKlZRr05M8cHGyC
wHZrQfgABgnaoby6ajnTRjLf6V6JlYz77ihj2edaptHjDcftvQDYmJqk/9F7JhPD
G9/M2kDSyuMJtNcLfo39clsodhwziFAtbUOvfBYWJVz3++nkI04PeE09nZD1IY3E
RcVas3PmbinKa91WZOB28qnjx0pO4Z0+T/Fvs40eQWLzHzqgKyGsxfDqMs50bWtj
PlOUqeLUI/pGEnGeBpG5CVdaH92l3LPxjakHjW3Wi2arpxajUMoxFzLpW2XrLum0
IjRqO35bo7FOn680DQE5
=jkG/
-----END PGP SIGNATURE-----
More information about the Users
mailing list