remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2003 Kungliga Tekniska Högskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of KTH nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
@@ -67,7 +67,7 @@ test_princ(krb5_context context)
|
||||
|
||||
free(princ_unparsed);
|
||||
|
||||
ret = krb5_unparse_name_flags(context, p,
|
||||
ret = krb5_unparse_name_flags(context, p,
|
||||
KRB5_PRINCIPAL_UNPARSE_NO_REALM,
|
||||
&princ_unparsed);
|
||||
if (ret)
|
||||
@@ -76,7 +76,7 @@ test_princ(krb5_context context)
|
||||
if (strcmp(princ_short, princ_unparsed))
|
||||
krb5_errx(context, 1, "%s != %s", princ_short, princ_unparsed);
|
||||
free(princ_unparsed);
|
||||
|
||||
|
||||
realm = krb5_principal_get_realm(context, p);
|
||||
|
||||
asprintf(&princ_reformed, "%s@%s", princ_short, realm);
|
||||
@@ -88,7 +88,7 @@ test_princ(krb5_context context)
|
||||
|
||||
if (!krb5_principal_compare(context, p, p2)) {
|
||||
krb5_errx(context, 1, "p != p2");
|
||||
}
|
||||
}
|
||||
|
||||
krb5_free_principal(context, p2);
|
||||
|
||||
@@ -96,7 +96,7 @@ test_princ(krb5_context context)
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name");
|
||||
|
||||
ret = krb5_unparse_name_flags(context, p,
|
||||
ret = krb5_unparse_name_flags(context, p,
|
||||
KRB5_PRINCIPAL_UNPARSE_SHORT,
|
||||
&princ_unparsed);
|
||||
if (ret)
|
||||
@@ -181,20 +181,20 @@ test_princ(krb5_context context)
|
||||
krb5_errx(context, 1, "'%s' != '%s'", princ, princ_unparsed);
|
||||
free(princ_unparsed);
|
||||
|
||||
ret = krb5_parse_name_flags(context, princ,
|
||||
ret = krb5_parse_name_flags(context, princ,
|
||||
KRB5_PRINCIPAL_PARSE_NO_REALM,
|
||||
&p2);
|
||||
if (!ret)
|
||||
krb5_err(context, 1, ret, "Should have failed to parse %s a "
|
||||
"short name", princ);
|
||||
|
||||
ret = krb5_parse_name_flags(context, princ_short,
|
||||
ret = krb5_parse_name_flags(context, princ_short,
|
||||
KRB5_PRINCIPAL_PARSE_NO_REALM,
|
||||
&p2);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name");
|
||||
|
||||
ret = krb5_unparse_name_flags(context, p2,
|
||||
ret = krb5_unparse_name_flags(context, p2,
|
||||
KRB5_PRINCIPAL_UNPARSE_NO_REALM,
|
||||
&princ_unparsed);
|
||||
krb5_free_principal(context, p2);
|
||||
@@ -205,7 +205,7 @@ test_princ(krb5_context context)
|
||||
krb5_errx(context, 1, "'%s' != '%s'", princ_short, princ_unparsed);
|
||||
free(princ_unparsed);
|
||||
|
||||
ret = krb5_parse_name_flags(context, princ_short,
|
||||
ret = krb5_parse_name_flags(context, princ_short,
|
||||
KRB5_PRINCIPAL_PARSE_MUST_REALM,
|
||||
&p2);
|
||||
if (!ret)
|
||||
@@ -217,11 +217,11 @@ test_princ(krb5_context context)
|
||||
&p2);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name");
|
||||
|
||||
|
||||
if (!krb5_principal_compare(context, p, p2))
|
||||
krb5_errx(context, 1, "p != p2");
|
||||
|
||||
ret = krb5_unparse_name_flags(context, p2,
|
||||
ret = krb5_unparse_name_flags(context, p2,
|
||||
KRB5_PRINCIPAL_UNPARSE_NO_REALM,
|
||||
&princ_unparsed);
|
||||
krb5_free_principal(context, p2);
|
||||
@@ -274,7 +274,7 @@ test_enterprise(krb5_context context)
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name");
|
||||
|
||||
ret = krb5_parse_name_flags(context, "lha@su.se@WIN.SU.SE",
|
||||
ret = krb5_parse_name_flags(context, "lha@su.se@WIN.SU.SE",
|
||||
KRB5_PRINCIPAL_PARSE_ENTERPRISE, &p);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name_flags");
|
||||
@@ -293,7 +293,7 @@ test_enterprise(krb5_context context)
|
||||
*
|
||||
*/
|
||||
|
||||
ret = krb5_parse_name_flags(context, "lha\\@su.se@WIN.SU.SE",
|
||||
ret = krb5_parse_name_flags(context, "lha\\@su.se@WIN.SU.SE",
|
||||
KRB5_PRINCIPAL_PARSE_ENTERPRISE, &p);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name_flags");
|
||||
@@ -328,7 +328,7 @@ test_enterprise(krb5_context context)
|
||||
*
|
||||
*/
|
||||
|
||||
ret = krb5_parse_name_flags(context, "lha@su.se",
|
||||
ret = krb5_parse_name_flags(context, "lha@su.se",
|
||||
KRB5_PRINCIPAL_PARSE_ENTERPRISE, &p);
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_parse_name_flags");
|
||||
|
Reference in New Issue
Block a user