Codebase list krb5 / a5d504e
Add stubs for some removed replay cache functions Commit dcb853ac32779b173f39e19c0f24b0087de85771 removed some replay cache functions that haven't been considered part of the libkrb5 API. Some of these functions were used in OpenSSL (despite the lack of prototypes) prior to the OpenSSL 1.1 release. Run-time linker errors can occur if an OpenSSL 1.0.x (or earlier) libssl is used with a 1.18 libkrb5, even though the Kerberos code would likely never be used. Add stubs for the four functions historically used in OpenSSL. (cherry picked from commit 58109348cfa70c44b2b36233c18f9bb02a94cf26) ticket: 8905 version_fixed: 1.18.2 Greg Hudson 3 years ago
2 changed file(s) with 40 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
521521 krb5_principal_compare_any_realm
522522 krb5_principal_compare_flags
523523 krb5_prompter_posix
524 krb5_rc_default
525 krb5_rc_destroy
526 krb5_rc_get_lifespan
527 krb5_rc_initialize
524528 krb5_rd_cred
525529 krb5_rd_error
526530 krb5_rd_priv
159159 *tag_out = make_data(cdata->data + cdata->length - len, len);
160160 return 0;
161161 }
162
163 /*
164 * Stub functions for former internal replay cache functions used by OpenSSL
165 * (despite the lack of prototypes) before the OpenSSL 1.1 release.
166 */
167
168 krb5_error_code krb5_rc_default(krb5_context, krb5_rcache *);
169 krb5_error_code KRB5_CALLCONV krb5_rc_destroy(krb5_context, krb5_rcache);
170 krb5_error_code KRB5_CALLCONV krb5_rc_get_lifespan(krb5_context, krb5_rcache,
171 krb5_deltat *);
172 krb5_error_code KRB5_CALLCONV krb5_rc_initialize(krb5_context, krb5_rcache,
173 krb5_deltat);
174
175 krb5_error_code
176 krb5_rc_default(krb5_context context, krb5_rcache *rc)
177 {
178 return EINVAL;
179 }
180
181 krb5_error_code KRB5_CALLCONV
182 krb5_rc_destroy(krb5_context context, krb5_rcache rc)
183 {
184 return EINVAL;
185 }
186
187 krb5_error_code KRB5_CALLCONV
188 krb5_rc_get_lifespan(krb5_context context, krb5_rcache rc, krb5_deltat *span)
189 {
190 return EINVAL;
191 }
192
193 krb5_error_code KRB5_CALLCONV
194 krb5_rc_initialize(krb5_context context, krb5_rcache rc, krb5_deltat span)
195 {
196 return EINVAL;
197 }