author | Michael Krelin <hacker@klever.net> | 2008-02-02 10:49:52 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-02-02 10:49:52 (UTC) |
commit | f29ad6501686e5f43b536258b86d12683c711f02 (patch) (unidiff) | |
tree | 79ce9cf3f75449846bdf556550eaa927b20074be /include/opkele | |
parent | 61e6da06804f98d0cbb9d27eeb335351b3e05d4d (diff) | |
download | libopkele-f29ad6501686e5f43b536258b86d12683c711f02.zip libopkele-f29ad6501686e5f43b536258b86d12683c711f02.tar.gz libopkele-f29ad6501686e5f43b536258b86d12683c711f02.tar.bz2 |
generate html form hiddens from the openid message
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h index 842a722..5d39a5c 100644 --- a/include/opkele/types.h +++ b/include/opkele/types.h | |||
@@ -135,32 +135,34 @@ namespace opkele { | |||
135 | virtual string get_ns(const string& uri) const; | 135 | virtual string get_ns(const string& uri) const; |
136 | 136 | ||
137 | virtual fields_iterator fields_begin() const = 0; | 137 | virtual fields_iterator fields_begin() const = 0; |
138 | virtual fields_iterator fields_end() const = 0; | 138 | virtual fields_iterator fields_end() const = 0; |
139 | 139 | ||
140 | virtual string append_query(const string& url) const; | 140 | virtual string append_query(const string& url) const; |
141 | virtual string query_string() const; | 141 | virtual string query_string() const; |
142 | 142 | ||
143 | 143 | ||
144 | virtual void reset_fields(); | 144 | virtual void reset_fields(); |
145 | virtual void set_field(const string& n,const string& v); | 145 | virtual void set_field(const string& n,const string& v); |
146 | virtual void reset_field(const string& n); | 146 | virtual void reset_field(const string& n); |
147 | 147 | ||
148 | virtual void from_keyvalues(const string& kv); | 148 | virtual void from_keyvalues(const string& kv); |
149 | virtual void to_keyvalues(ostream& o) const; | 149 | virtual void to_keyvalues(ostream& o) const; |
150 | 150 | ||
151 | virtual void to_htmlhiddens(ostream& o) const; | ||
152 | |||
151 | void add_to_signed(const string& fields); | 153 | void add_to_signed(const string& fields); |
152 | string find_ns(const string& uri,const char *pfx) const; | 154 | string find_ns(const string& uri,const char *pfx) const; |
153 | string allocate_ns(const string& uri,const char *pfx); | 155 | string allocate_ns(const string& uri,const char *pfx); |
154 | }; | 156 | }; |
155 | 157 | ||
156 | class openid_message_t : public basic_openid_message, public map<string,string> { | 158 | class openid_message_t : public basic_openid_message, public map<string,string> { |
157 | public: | 159 | public: |
158 | openid_message_t() { } | 160 | openid_message_t() { } |
159 | openid_message_t(const basic_openid_message& x) | 161 | openid_message_t(const basic_openid_message& x) |
160 | : basic_openid_message(x) { } | 162 | : basic_openid_message(x) { } |
161 | 163 | ||
162 | void copy_to(basic_openid_message& x) const; | 164 | void copy_to(basic_openid_message& x) const; |
163 | 165 | ||
164 | bool has_field(const string& n) const; | 166 | bool has_field(const string& n) const; |
165 | const string& get_field(const string& n) const; | 167 | const string& get_field(const string& n) const; |
166 | virtual fields_iterator fields_begin() const; | 168 | virtual fields_iterator fields_begin() const; |