Moved implentation of constructor/destructor inside the class to make it link (by...
[moonshot-firefox.git] / nsMoonshotSessionState.cpp
1 #include "nsMoonshotSessionState.h"
2
3 #if 0
4 nsMoonshotSessionState::nsMoonshotSessionState()
5 {
6     gss_ctx = GSS_C_NO_CONTEXT;
7     gss_state = GSS_CTX_EMPTY;
8     gss_cred = GSS_C_NO_CREDENTIAL;
9 }
10
11 nsMoonshotSessionState::~nsMoonshotSessionState()
12 {
13     OM_uint32 min_stat;
14
15     if (gss_ctx != GSS_C_NO_CONTEXT)
16         gss_delete_sec_context(&min_stat, &gss_ctx, GSS_C_NO_BUFFER);
17
18     if (gss_cred != GSS_C_NO_CREDENTIAL)
19         gss_release_cred(&min_stat, &gss_cred);
20
21     gss_ctx = GSS_C_NO_CONTEXT;
22     gss_cred = GSS_C_NO_CREDENTIAL;
23     gss_state = GSS_CTX_EMPTY;
24 }
25 #endif
26
27 void
28 nsMoonshotSessionState::Reset()
29 {
30     OM_uint32 min_stat;
31
32     if (gss_ctx != GSS_C_NO_CONTEXT)
33         gss_delete_sec_context(&min_stat, &gss_ctx, GSS_C_NO_BUFFER);
34     gss_ctx = GSS_C_NO_CONTEXT;
35     gss_state = GSS_CTX_EMPTY;
36 }
37
38 //NS_IMPL_ISUPPORTS0(nsMoonshotSessionState)