author | Michael Krelin <hacker@klever.net> | 2008-01-20 21:08:05 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-20 21:08:05 (UTC) |
commit | 9bfb6fadf71c46bf4cb5adabba0c96c32e84c1bc (patch) (unidiff) | |
tree | 702473142242e80538c4801cc379ec98fba199dd /include/opkele/sreg.h | |
parent | 395a126cbf59b7a50f44da3096b68bab412ab33d (diff) | |
download | libopkele-9bfb6fadf71c46bf4cb5adabba0c96c32e84c1bc.zip libopkele-9bfb6fadf71c46bf4cb5adabba0c96c32e84c1bc.tar.gz libopkele-9bfb6fadf71c46bf4cb5adabba0c96c32e84c1bc.tar.bz2 |
the whole library rewritten
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/opkele/sreg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/opkele/sreg.h b/include/opkele/sreg.h index df37a86..24cb315 100644 --- a/include/opkele/sreg.h +++ b/include/opkele/sreg.h | |||
@@ -125,41 +125,41 @@ namespace opkele { | |||
125 | 125 | ||
126 | /** | 126 | /** |
127 | * Consumer constructor. | 127 | * Consumer constructor. |
128 | * @param fr required fields | 128 | * @param fr required fields |
129 | * @see fields_required | 129 | * @see fields_required |
130 | * @param fo optional fields | 130 | * @param fo optional fields |
131 | * @see fields_optional | 131 | * @see fields_optional |
132 | * @param pu policy url | 132 | * @param pu policy url |
133 | * @see policy_url | 133 | * @see policy_url |
134 | */ | 134 | */ |
135 | sreg_t(long fr=fields_NONE,long fo=fields_NONE,const string& pu="") | 135 | sreg_t(long fr=fields_NONE,long fo=fields_NONE,const string& pu="") |
136 | : fields_required(fr), fields_optional(fo), policy_url(pu), has_fields(0) { } | 136 | : fields_required(fr), fields_optional(fo), policy_url(pu), has_fields(0) { } |
137 | 137 | ||
138 | /** | 138 | /** |
139 | * Implementation of consumer's checkid hook | 139 | * Implementation of consumer's checkid hook |
140 | */ | 140 | */ |
141 | virtual void checkid_hook(params_t& p,const string& identity); | 141 | virtual void checkid_hook(basic_openid_message& om); |
142 | /** | 142 | /** |
143 | * Implementation of consumer's id_res hook | 143 | * Implementation of consumer's id_res hook |
144 | */ | 144 | */ |
145 | virtual void id_res_hook(const params_t& p,const params_t& sp,const string& identity); | 145 | virtual void id_res_hook(const basic_openid_message& om,const basic_openid_message& sp); |
146 | /** | 146 | /** |
147 | * Implementation of server's checkid_hook | 147 | * Implementation of server's checkid_hook |
148 | */ | 148 | */ |
149 | virtual void checkid_hook(const params_t& pin,params_t& pout); | 149 | virtual void checkid_hook(const basic_openid_message& inm,basic_openid_message& oum); |
150 | 150 | ||
151 | /** | 151 | /** |
152 | * Check and see if we have value for some particular field. | 152 | * Check and see if we have value for some particular field. |
153 | * @param fb field in question | 153 | * @param fb field in question |
154 | * @see fieldbit_t | 154 | * @see fieldbit_t |
155 | * @return true if the value is available | 155 | * @return true if the value is available |
156 | */ | 156 | */ |
157 | bool has_field(fieldbit_t fb) const { return has_fields&fb; } | 157 | bool has_field(fieldbit_t fb) const { return has_fields&fb; } |
158 | 158 | ||
159 | /** | 159 | /** |
160 | * Retrieve the value for a field. | 160 | * Retrieve the value for a field. |
161 | * @param fb field in question | 161 | * @param fb field in question |
162 | * @see fieldbit_t | 162 | * @see fieldbit_t |
163 | * @return field value | 163 | * @return field value |
164 | * @throw failed_lookup if no data avaialble | 164 | * @throw failed_lookup if no data avaialble |
165 | */ | 165 | */ |
@@ -182,22 +182,22 @@ namespace opkele { | |||
182 | 182 | ||
183 | /** | 183 | /** |
184 | * Reset field data | 184 | * Reset field data |
185 | */ | 185 | */ |
186 | void clear(); | 186 | void clear(); |
187 | 187 | ||
188 | /** | 188 | /** |
189 | * Function called after parsing sreg request to set up response | 189 | * Function called after parsing sreg request to set up response |
190 | * fields. The default implementation tries to send as much fields | 190 | * fields. The default implementation tries to send as much fields |
191 | * as we have. The function is supposed to set the data and | 191 | * as we have. The function is supposed to set the data and |
192 | * fields_response. | 192 | * fields_response. |
193 | * @see fields_response | 193 | * @see fields_response |
194 | * @param pin input request parameters with "openid." prefix | 194 | * @param pin input request parameters with "openid." prefix |
195 | * @param pout output request parameters without "openid." prefix. | 195 | * @param pout output request parameters without "openid." prefix. |
196 | * @see checkid_hook(const params_t&,params_t&) | 196 | * @see checkid_hook(const params_t&,params_t&) |
197 | */ | 197 | */ |
198 | virtual void setup_response(const params_t& pin,params_t& pout); | 198 | virtual void setup_response(const basic_openid_message& inm,basic_openid_message& oum); |
199 | 199 | ||
200 | }; | 200 | }; |
201 | } | 201 | } |
202 | 202 | ||
203 | #endif /* __OPKELE_SREG_H */ | 203 | #endif /* __OPKELE_SREG_H */ |