move unused variables inside their #if 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8577 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -44,8 +44,6 @@ gss_export_sec_context (
|
||||
{
|
||||
krb5_storage *sp;
|
||||
krb5_auth_context ac;
|
||||
unsigned char auth_buf[1024];
|
||||
size_t sz;
|
||||
int ret;
|
||||
krb5_data data;
|
||||
gss_buffer_desc buffer;
|
||||
@@ -97,16 +95,21 @@ gss_export_sec_context (
|
||||
krb5_store_int32 (sp, ac->remote_seqnumber);
|
||||
|
||||
#if 0
|
||||
ret = encode_Authenticator (auth_buf, sizeof(auth_buf),
|
||||
ac->authenticator, &sz);
|
||||
if (ret) {
|
||||
krb5_storage_free (sp);
|
||||
*minor_status = ret;
|
||||
return GSS_S_FAILURE;
|
||||
{
|
||||
size_t sz;
|
||||
unsigned char auth_buf[1024];
|
||||
|
||||
ret = encode_Authenticator (auth_buf, sizeof(auth_buf),
|
||||
ac->authenticator, &sz);
|
||||
if (ret) {
|
||||
krb5_storage_free (sp);
|
||||
*minor_status = ret;
|
||||
return GSS_S_FAILURE;
|
||||
}
|
||||
data.data = auth_buf;
|
||||
data.length = sz;
|
||||
krb5_store_data (sp, data);
|
||||
}
|
||||
data.data = auth_buf;
|
||||
data.length = sz;
|
||||
krb5_store_data (sp, data);
|
||||
#endif
|
||||
krb5_store_int32 (sp, ac->keytype);
|
||||
krb5_store_int32 (sp, ac->cksumtype);
|
||||
|
@@ -44,8 +44,6 @@ gss_export_sec_context (
|
||||
{
|
||||
krb5_storage *sp;
|
||||
krb5_auth_context ac;
|
||||
unsigned char auth_buf[1024];
|
||||
size_t sz;
|
||||
int ret;
|
||||
krb5_data data;
|
||||
gss_buffer_desc buffer;
|
||||
@@ -97,16 +95,21 @@ gss_export_sec_context (
|
||||
krb5_store_int32 (sp, ac->remote_seqnumber);
|
||||
|
||||
#if 0
|
||||
ret = encode_Authenticator (auth_buf, sizeof(auth_buf),
|
||||
ac->authenticator, &sz);
|
||||
if (ret) {
|
||||
krb5_storage_free (sp);
|
||||
*minor_status = ret;
|
||||
return GSS_S_FAILURE;
|
||||
{
|
||||
size_t sz;
|
||||
unsigned char auth_buf[1024];
|
||||
|
||||
ret = encode_Authenticator (auth_buf, sizeof(auth_buf),
|
||||
ac->authenticator, &sz);
|
||||
if (ret) {
|
||||
krb5_storage_free (sp);
|
||||
*minor_status = ret;
|
||||
return GSS_S_FAILURE;
|
||||
}
|
||||
data.data = auth_buf;
|
||||
data.length = sz;
|
||||
krb5_store_data (sp, data);
|
||||
}
|
||||
data.data = auth_buf;
|
||||
data.length = sz;
|
||||
krb5_store_data (sp, data);
|
||||
#endif
|
||||
krb5_store_int32 (sp, ac->keytype);
|
||||
krb5_store_int32 (sp, ac->cksumtype);
|
||||
|
Reference in New Issue
Block a user