summaryrefslogtreecommitdiffabout
path: root/include/opkele/association.h
Unidiff
Diffstat (limited to 'include/opkele/association.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/association.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opkele/association.h b/include/opkele/association.h
index a8f3915..72eff5b 100644
--- a/include/opkele/association.h
+++ b/include/opkele/association.h
@@ -58,11 +58,13 @@ namespace opkele {
58 virtual string server() const { return _server; } 58 virtual string server() const { return _server; }
59 virtual string handle() const { return _handle; } 59 virtual string handle() const { return _handle; }
60 virtual string assoc_type() const { return _assoc_type; } 60 virtual string assoc_type() const { return _assoc_type; }
61 virtual secret_t secret() const { return _secret; } 61 virtual secret_t secret() const { return _secret; }
62 virtual int expires_in() const { return _expires-time(0); } 62 virtual int expires_in() const { return _expires-time(0); }
63 virtual bool stateless() const { return _stateless; } 63 virtual bool stateless() const { return _stateless; }
64
65 virtual bool is_expired() const { return _expires<time(0); }
64 }; 66 };
65 67
66} 68}
67 69
68#endif /* __OPKELE_ASSOCIATION_H */ 70#endif /* __OPKELE_ASSOCIATION_H */