diff options
author | lloyd <[email protected]> | 2006-06-25 07:44:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-25 07:44:19 +0000 |
commit | abdd958c0f4b1d880feec5e79230219005e43670 (patch) | |
tree | a16c34e8463d8c5f0f2b9af5e421d51ffd82476b | |
parent | 260f30df2ddf4a0148c3e16785af7cc78b722a70 (diff) |
Make Library_State::x509_state() non-const to support lazy initialiation.
-rw-r--r-- | include/libstate.h | 2 | ||||
-rw-r--r-- | src/libstate.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libstate.h b/include/libstate.h index 6e227140a..531824670 100644 --- a/include/libstate.h +++ b/include/libstate.h @@ -52,7 +52,7 @@ class Library_State class Mutex* get_mutex() const; void set_x509_state(class X509_GlobalState*); - class X509_GlobalState& x509_state() const; + class X509_GlobalState& x509_state(); void set_transcoder(class Charset_Transcoder*); std::string transcode(const std::string, diff --git a/src/libstate.cpp b/src/libstate.cpp index 1438829f6..e27332025 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -306,7 +306,7 @@ void Library_State::set_x509_state(X509_GlobalState* new_x509_state_obj) /************************************************* * Set the X509 global state class * *************************************************/ -X509_GlobalState& Library_State::x509_state() const +X509_GlobalState& Library_State::x509_state() { if(!x509_state_obj) x509_state_obj = new X509_GlobalState(); |