views:

27

answers:

2

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++?

A: 

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
You are right my requirements are along those lines could please point me towards "better ways".
Shishya
@bwawok Can you please give me ideas as what these other methods are?
Shishya
A: 

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

qor72