[BACK]Return to spnego.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / lib / dns

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/mpl/bind/dist/lib/dns/Attic/spnego.c between version 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2020/08/03 17:07:11 version 1.1.1.5, 2021/02/19 16:37:13
Line 5 
Line 5 
  *   *
  * This Source Code Form is subject to the terms of the Mozilla Public   * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this   * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.   * file, you can obtain one at https://mozilla.org/MPL/2.0/.
  *   *
  * See the COPYRIGHT file distributed with this work for additional   * See the COPYRIGHT file distributed with this work for additional
  * information regarding copyright ownership.   * information regarding copyright ownership.
Line 214  typedef enum { PRIM = 0, CONS = 1 } Der_
Line 214  typedef enum { PRIM = 0, CONS = 1 } Der_
   
 /* Universal tags */  /* Universal tags */
   
 enum { UT_Boolean = 1,  enum {
        UT_Integer = 2,          UT_Boolean = 1,
        UT_BitString = 3,          UT_Integer = 2,
        UT_OctetString = 4,          UT_BitString = 3,
        UT_Null = 5,          UT_OctetString = 4,
        UT_OID = 6,          UT_Null = 5,
        UT_Enumerated = 10,          UT_OID = 6,
        UT_Sequence = 16,          UT_Enumerated = 10,
        UT_Set = 17,          UT_Sequence = 16,
        UT_PrintableString = 19,          UT_Set = 17,
        UT_IA5String = 22,          UT_PrintableString = 19,
        UT_UTCTime = 23,          UT_IA5String = 22,
        UT_GeneralizedTime = 24,          UT_UTCTime = 23,
        UT_VisibleString = 26,          UT_GeneralizedTime = 24,
        UT_GeneralString = 27 };          UT_VisibleString = 26,
           UT_GeneralString = 27
   };
   
 #define ASN1_INDEFINITE 0xdce0deed  #define ASN1_INDEFINITE 0xdce0deed
   
Line 848  der_get_oid(const unsigned char *p, size
Line 850  der_get_oid(const unsigned char *p, size
                 return (ASN1_OVERRUN);                  return (ASN1_OVERRUN);
         }          }
   
         data->components = malloc(len * sizeof(*data->components));          data->components = malloc((len + 1) * sizeof(*data->components));
         if (data->components == NULL) {          if (data->components == NULL) {
                 return (ENOMEM);                  return (ENOMEM);
         }          }
Line 1509  spnego_initial(OM_uint32 *minor_status,
Line 1511  spnego_initial(OM_uint32 *minor_status,
         gss_buffer_desc krb5_output_token = GSS_C_EMPTY_BUFFER;          gss_buffer_desc krb5_output_token = GSS_C_EMPTY_BUFFER;
         unsigned char *buf = NULL;          unsigned char *buf = NULL;
         size_t buf_size;          size_t buf_size;
         size_t len;          size_t len = 0;
         int ret;          int ret;
   
         (void)mech_type;          (void)mech_type;

Legend:
Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5

CVSweb <webmaster@jp.NetBSD.org>