diff options
-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(); |