}
if (pLifetime != NULL) {
- time_t now, lifetime;
-
+ time_t now, lifetime;
+
if (cred->expiryTime == 0) {
- lifetime = GSS_C_INDEFINITE;
+ lifetime = GSS_C_INDEFINITE;
} else {
now = time(NULL);
lifetime = now - cred->expiryTime;
int
gssEapVerify(krb5_context context,
krb5_cksumtype type,
- size_t rrc,
+ size_t rrc,
krb5_keyblock *key,
krb5_keyusage sign_usage,
gss_iov_buffer_desc *iov,
composeOid(OM_uint32 *minor_status,
const char *prefix,
size_t prefix_len,
- int suffix,
+ int suffix,
gss_OID_desc *oid);
OM_uint32
if (host != NULL) {
*host = '\0';
host++;
- }
+ }
/* XXX this is probably NOT what we want to be doing */
*minor = krb5_sname_to_principal(krbContext, host, service,
*/
/*
* Copyright 2001-2009 Internet2
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
if (value->length != 0) {
string valueStr((char *)value->value, value->length);
- a->getValues().push_back(valueStr);
+ a->getValues().push_back(valueStr);
}
m_attributes.push_back(a);
duplicateBuffer(buf, display_value);
}
- if (authenticated != NULL)
+ if (authenticated != NULL)
*authenticated = m_authenticated;
if (complete != NULL)
*complete = false;