123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- #ifndef __gen_nsIX509CertValidity_h__
- #define __gen_nsIX509CertValidity_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- #define NS_IX509CERTVALIDITY_IID_STR "e701dfd8-1dd1-11b2-a172-ffa6cc6156ad"
- #define NS_IX509CERTVALIDITY_IID \
- {0xe701dfd8, 0x1dd1, 0x11b2, \
- { 0xa1, 0x72, 0xff, 0xa6, 0xcc, 0x61, 0x56, 0xad }}
- class NS_NO_VTABLE nsIX509CertValidity : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_IX509CERTVALIDITY_IID)
-
-
- NS_IMETHOD GetNotBefore(PRTime *aNotBefore) = 0;
-
-
- NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) = 0;
-
-
- NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) = 0;
-
-
- NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) = 0;
-
-
- NS_IMETHOD GetNotAfter(PRTime *aNotAfter) = 0;
-
-
- NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) = 0;
-
-
- NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) = 0;
-
-
- NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) = 0;
- };
- #define NS_DECL_NSIX509CERTVALIDITY \
- NS_IMETHOD GetNotBefore(PRTime *aNotBefore); \
- NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime); \
- NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay); \
- NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT); \
- NS_IMETHOD GetNotAfter(PRTime *aNotAfter); \
- NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime); \
- NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay); \
- NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT);
- #define NS_FORWARD_NSIX509CERTVALIDITY(_to) \
- NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return _to GetNotBefore(aNotBefore); } \
- NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return _to GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
- NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return _to GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
- NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return _to GetNotBeforeGMT(aNotBeforeGMT); } \
- NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return _to GetNotAfter(aNotAfter); } \
- NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return _to GetNotAfterLocalTime(aNotAfterLocalTime); } \
- NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return _to GetNotAfterLocalDay(aNotAfterLocalDay); } \
- NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return _to GetNotAfterGMT(aNotAfterGMT); }
- #define NS_FORWARD_SAFE_NSIX509CERTVALIDITY(_to) \
- NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBefore(aNotBefore); } \
- NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
- NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
- NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeGMT(aNotBeforeGMT); } \
- NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfter(aNotAfter); } \
- NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalTime(aNotAfterLocalTime); } \
- NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalDay(aNotAfterLocalDay); } \
- NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterGMT(aNotAfterGMT); }
- #if 0
- class nsX509CertValidity : public nsIX509CertValidity
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIX509CERTVALIDITY
- nsX509CertValidity();
- private:
- ~nsX509CertValidity();
- protected:
-
- };
- NS_IMPL_ISUPPORTS1(nsX509CertValidity, nsIX509CertValidity)
- nsX509CertValidity::nsX509CertValidity()
- {
-
- }
- nsX509CertValidity::~nsX509CertValidity()
- {
-
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotBefore(PRTime *aNotBefore)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotBeforeGMT(nsAString & aNotBeforeGMT)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotAfter(PRTime *aNotAfter)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalTime(nsAString & aNotAfterLocalTime)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalDay(nsAString & aNotAfterLocalDay)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsX509CertValidity::GetNotAfterGMT(nsAString & aNotAfterGMT)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- #endif
- #endif
|