KRB5_DEPRECATED needs to be prefixed to the declaration on Windows

This commit is contained in:
Asanka Herath
2009-11-25 12:40:50 -05:00
parent 798d78e098
commit 72848585cd
2 changed files with 8 additions and 4 deletions

View File

@@ -631,8 +631,9 @@ krb5_get_cred_from_kdc(krb5_context context,
* @ingroup krb5_deprecated * @ingroup krb5_deprecated
*/ */
KRB5_DEPRECATED
void KRB5_LIB_FUNCTION void KRB5_LIB_FUNCTION
krb5_free_unparsed_name(krb5_context context, char *str) KRB5_DEPRECATED krb5_free_unparsed_name(krb5_context context, char *str)
{ {
krb5_xfree(str); krb5_xfree(str);
} }
@@ -643,10 +644,11 @@ krb5_free_unparsed_name(krb5_context context, char *str) KRB5_DEPRECATED
* @ingroup krb5_deprecated * @ingroup krb5_deprecated
*/ */
KRB5_DEPRECATED
krb5_error_code KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_FUNCTION
krb5_generate_subkey(krb5_context context, krb5_generate_subkey(krb5_context context,
const krb5_keyblock *key, const krb5_keyblock *key,
krb5_keyblock **subkey) KRB5_DEPRECATED krb5_keyblock **subkey)
{ {
return krb5_generate_subkey_extended(context, key, ETYPE_NULL, subkey); return krb5_generate_subkey_extended(context, key, ETYPE_NULL, subkey);
} }
@@ -657,10 +659,11 @@ krb5_generate_subkey(krb5_context context,
* @ingroup krb5_deprecated * @ingroup krb5_deprecated
*/ */
KRB5_DEPRECATED
krb5_error_code KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_FUNCTION
krb5_auth_getremoteseqnumber(krb5_context context, krb5_auth_getremoteseqnumber(krb5_context context,
krb5_auth_context auth_context, krb5_auth_context auth_context,
int32_t *seqnumber) KRB5_DEPRECATED int32_t *seqnumber)
{ {
*seqnumber = auth_context->remote_seqnumber; *seqnumber = auth_context->remote_seqnumber;
return 0; return 0;

View File

@@ -279,8 +279,9 @@ krb5_free_error_message(krb5_context context, const char *msg)
* @ingroup krb5 * @ingroup krb5
*/ */
KRB5_DEPRECATED
KRB5_LIB_FUNCTION const char* KRB5_LIB_CALL KRB5_LIB_FUNCTION const char* KRB5_LIB_CALL
krb5_get_err_text(krb5_context context, krb5_error_code code) KRB5_DEPRECATED krb5_get_err_text(krb5_context context, krb5_error_code code)
{ {
const char *p = NULL; const char *p = NULL;
if(context != NULL) if(context != NULL)