0

I want to break the dependency on the system clock in my application as it can be tampered with. I found this for JAVA. Can anyone point me to something like this or something that helps me achieve this for c++?

Community
  • 1
  • 1
Asif Mohammed
  • 790
  • 4
  • 11
  • 25

2 Answers2

0

You do realize that is just a web call? Someone can tamper with it by doing a man in the middle attack on the web call.

(yes it is harder than just changing the date, but unless you are talking to a secure host it could be intercepted).

I assume you are doing this for some kind of "expire demo code after it has ran for 30 days?" If so, there may be better ways to do that...

bwawok
  • 14,898
  • 7
  • 32
  • 43
0

You mean something like an NTP Class (this one looks to use boost)? I have not used this one, so ymmv.

AlG
  • 14,697
  • 4
  • 41
  • 54