sss_krb5.c revision f4284f4791e5f84193d70d82eaa7465a26813731
/*
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <errno.h>
#include <talloc.h>
#include "config.h"
#include "util/sss_krb5.h"
{
#ifdef HAVE_KRB5_GET_ERROR_MESSAGE
#else
int ret;
char *s = NULL;
int size = sizeof("Kerberos error [XXXXXXXXXXXX]");
if (s == NULL) {
return NULL;
}
return NULL;
}
return s;
#endif
}
{
#ifdef HAVE_KRB5_GET_ERROR_MESSAGE
#else
free(s);
#endif
return;
}
{
#else
return ENOMEM;
}
return 0;
#endif
}
{
#else
#endif
return;
}
{
#ifdef HAVE_KRB5_FREE_UNPARSED_NAME
#else
}
#endif
}
const char *client_princ_str, bool *result)
{
char *server_name = NULL;
*result = false;
return ENOMEM;
}
if (krberr) {
goto done;
}
if (krberr != 0) {
goto done;
}
if (server_name == NULL) {
goto done;
}
if (krberr != 0) {
goto done;
}
if (krberr != 0) {
goto done;
}
if (krberr != 0) {
krberr = 0;
goto done;
}
*result = true;
}
krberr = 0;
done:
if (client_principal != NULL) {
}
if (server_principal != NULL) {
}
}
return krberr;
}