Regenerate files that were affected by changes to asn1_compile that were
authorguenther <guenther@openbsd.org>
Thu, 5 Aug 2010 07:45:31 +0000 (07:45 +0000)
committerguenther <guenther@openbsd.org>
Thu, 5 Aug 2010 07:45:31 +0000 (07:45 +0000)
made years ago.

ok deraadt@

17 files changed:
lib/libgssapi/generated/asn1_MechTypeList.c
lib/libgssapi/generated/spnego_asn1.h
lib/libkrb5/generated/asn1_AuthorizationData.c
lib/libkrb5/generated/asn1_ETYPE_INFO.c
lib/libkrb5/generated/asn1_ETYPE_INFO2.c
lib/libkrb5/generated/asn1_EncKrbCredPart.c
lib/libkrb5/generated/asn1_EtypeList.c
lib/libkrb5/generated/asn1_HostAddresses.c
lib/libkrb5/generated/asn1_KDC_REQ_BODY.c
lib/libkrb5/generated/asn1_KRB_CRED.c
lib/libkrb5/generated/asn1_LastReq.c
lib/libkrb5/generated/asn1_METHOD_DATA.c
lib/libkrb5/generated/asn1_PA_SAM_CHALLENGE_2.c
lib/libkrb5/generated/asn1_PrincipalName.c
lib/libkrb5/generated/asn1_hdb_entry.c
lib/libkrb5/generated/hdb_asn1.h
lib/libkrb5/generated/krb5_asn1.h

index b4ec8a2..aa7d722 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libgssapi/../../kerberosV/src/lib/gssapi/spnego.asn1 */
+/* Generated from /home/src/src/lib/libgssapi/../../kerberosV/src/lib/gssapi/spnego.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -105,7 +105,7 @@ return ret;
 int
 copy_MechTypeList(const MechTypeList *from, MechTypeList *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_MechType(&(from)->val[(to)->len], &(to)->val[(to)->len])) return ENOMEM;
index a3c88ba..d9e21e1 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libgssapi/../../kerberosV/src/lib/gssapi/spnego.asn1 */
+/* Generated from /home/src/src/lib/libgssapi/../../kerberosV/src/lib/gssapi/spnego.asn1 */
 /* Do not edit */
 
 #ifndef __spnego_asn1_h__
@@ -7,8 +7,6 @@
 #include <stddef.h>
 #include <time.h>
 
-time_t timegm (struct tm*);
-
 #ifndef __asn1_common_definitions__
 #define __asn1_common_definitions__
 
index 3f84d48..b4685d0 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -196,7 +196,7 @@ return ret;
 int
 copy_AuthorizationData(const AuthorizationData *from, AuthorizationData *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 *(&(&(to)->val[(to)->len])->ad_type) = *(&(&(from)->val[(to)->len])->ad_type);
index c122bb8..64293cf 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -105,7 +105,7 @@ return ret;
 int
 copy_ETYPE_INFO(const ETYPE_INFO *from, ETYPE_INFO *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_ETYPE_INFO_ENTRY(&(from)->val[(to)->len], &(to)->val[(to)->len])) return ENOMEM;
index ce1503d..6e7ed2b 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -105,7 +105,7 @@ return ret;
 int
 copy_ETYPE_INFO2(const ETYPE_INFO2 *from, ETYPE_INFO2 *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_ETYPE_INFO2_ENTRY(&(from)->val[(to)->len], &(to)->val[(to)->len])) return ENOMEM;
index 870d4d8..72ef340 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -412,7 +412,7 @@ return ret;
 int
 copy_EncKrbCredPart(const EncKrbCredPart *from, EncKrbCredPart *to)
 {
-if(((&(to)->ticket_info)->val = malloc((&(from)->ticket_info)->len * sizeof(*(&(to)->ticket_info)->val))) == NULL && (&(from)->ticket_info)->len != 0)
+if(((&(to)->ticket_info)->val = calloc((&(from)->ticket_info)->len, sizeof(*(&(to)->ticket_info)->val))) == NULL && (&(from)->ticket_info)->len != 0)
 return ENOMEM;
 for((&(to)->ticket_info)->len = 0; (&(to)->ticket_info)->len < (&(from)->ticket_info)->len; (&(to)->ticket_info)->len++){
 if(copy_KrbCredInfo(&(&(from)->ticket_info)->val[(&(to)->ticket_info)->len], &(&(to)->ticket_info)->val[(&(to)->ticket_info)->len])) return ENOMEM;
index 2b9aea9..b73cc54 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -104,7 +104,7 @@ return ret;
 int
 copy_EtypeList(const EtypeList *from, EtypeList *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 *(&(to)->val[(to)->len]) = *(&(from)->val[(to)->len]);
index fadc564..db4620c 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -105,7 +105,7 @@ return ret;
 int
 copy_HostAddresses(const HostAddresses *from, HostAddresses *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_HostAddress(&(from)->val[(to)->len], &(to)->val[(to)->len])) return ENOMEM;
index 1272de8..ecf50ba 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -746,7 +746,7 @@ if(copy_KerberosTime((from)->rtime, (to)->rtime)) return ENOMEM;
 }else
 (to)->rtime = NULL;
 *(&(to)->nonce) = *(&(from)->nonce);
-if(((&(to)->etype)->val = malloc((&(from)->etype)->len * sizeof(*(&(to)->etype)->val))) == NULL && (&(from)->etype)->len != 0)
+if(((&(to)->etype)->val = calloc((&(from)->etype)->len, sizeof(*(&(to)->etype)->val))) == NULL && (&(from)->etype)->len != 0)
 return ENOMEM;
 for((&(to)->etype)->len = 0; (&(to)->etype)->len < (&(from)->etype)->len; (&(to)->etype)->len++){
 if(copy_ENCTYPE(&(&(from)->etype)->val[(&(to)->etype)->len], &(&(to)->etype)->val[(&(to)->etype)->len])) return ENOMEM;
@@ -766,7 +766,7 @@ if(copy_EncryptedData((from)->enc_authorization_data, (to)->enc_authorization_da
 if((from)->additional_tickets) {
 (to)->additional_tickets = malloc(sizeof(*(to)->additional_tickets));
 if((to)->additional_tickets == NULL) return ENOMEM;
-if((((to)->additional_tickets)->val = malloc(((from)->additional_tickets)->len * sizeof(*((to)->additional_tickets)->val))) == NULL && ((from)->additional_tickets)->len != 0)
+if((((to)->additional_tickets)->val = calloc(((from)->additional_tickets)->len, sizeof(*((to)->additional_tickets)->val))) == NULL && ((from)->additional_tickets)->len != 0)
 return ENOMEM;
 for(((to)->additional_tickets)->len = 0; ((to)->additional_tickets)->len < ((from)->additional_tickets)->len; ((to)->additional_tickets)->len++){
 if(copy_Ticket(&((from)->additional_tickets)->val[((to)->additional_tickets)->len], &((to)->additional_tickets)->val[((to)->additional_tickets)->len])) return ENOMEM;
index 2f8e27e..2d3ecb2 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -296,7 +296,7 @@ copy_KRB_CRED(const KRB_CRED *from, KRB_CRED *to)
 {
 *(&(to)->pvno) = *(&(from)->pvno);
 if(copy_MESSAGE_TYPE(&(from)->msg_type, &(to)->msg_type)) return ENOMEM;
-if(((&(to)->tickets)->val = malloc((&(from)->tickets)->len * sizeof(*(&(to)->tickets)->val))) == NULL && (&(from)->tickets)->len != 0)
+if(((&(to)->tickets)->val = calloc((&(from)->tickets)->len, sizeof(*(&(to)->tickets)->val))) == NULL && (&(from)->tickets)->len != 0)
 return ENOMEM;
 for((&(to)->tickets)->len = 0; (&(to)->tickets)->len < (&(from)->tickets)->len; (&(to)->tickets)->len++){
 if(copy_Ticket(&(&(from)->tickets)->val[(&(to)->tickets)->len], &(&(to)->tickets)->val[(&(to)->tickets)->len])) return ENOMEM;
index cfeb94f..b653f92 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -197,7 +197,7 @@ return ret;
 int
 copy_LastReq(const LastReq *from, LastReq *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_LR_TYPE(&(&(from)->val[(to)->len])->lr_type, &(&(to)->val[(to)->len])->lr_type)) return ENOMEM;
index 4920003..83c579c 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -105,7 +105,7 @@ return ret;
 int
 copy_METHOD_DATA(const METHOD_DATA *from, METHOD_DATA *to)
 {
-if(((to)->val = malloc((from)->len * sizeof(*(to)->val))) == NULL && (from)->len != 0)
+if(((to)->val = calloc((from)->len, sizeof(*(to)->val))) == NULL && (from)->len != 0)
 return ENOMEM;
 for((to)->len = 0; (to)->len < (from)->len; (to)->len++){
 if(copy_PA_DATA(&(from)->val[(to)->len], &(to)->val[(to)->len])) return ENOMEM;
index f2c0b78..71a5c49 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -198,7 +198,7 @@ int
 copy_PA_SAM_CHALLENGE_2(const PA_SAM_CHALLENGE_2 *from, PA_SAM_CHALLENGE_2 *to)
 {
 if(copy_PA_SAM_CHALLENGE_2_BODY(&(from)->sam_body, &(to)->sam_body)) return ENOMEM;
-if(((&(to)->sam_cksum)->val = malloc((&(from)->sam_cksum)->len * sizeof(*(&(to)->sam_cksum)->val))) == NULL && (&(from)->sam_cksum)->len != 0)
+if(((&(to)->sam_cksum)->val = calloc((&(from)->sam_cksum)->len, sizeof(*(&(to)->sam_cksum)->val))) == NULL && (&(from)->sam_cksum)->len != 0)
 return ENOMEM;
 for((&(to)->sam_cksum)->len = 0; (&(to)->sam_cksum)->len < (&(from)->sam_cksum)->len; (&(to)->sam_cksum)->len++){
 if(copy_Checksum(&(&(from)->sam_cksum)->val[(&(to)->sam_cksum)->len], &(&(to)->sam_cksum)->val[(&(to)->sam_cksum)->len])) return ENOMEM;
index 5c201e9..a31094e 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -198,7 +198,7 @@ int
 copy_PrincipalName(const PrincipalName *from, PrincipalName *to)
 {
 if(copy_NAME_TYPE(&(from)->name_type, &(to)->name_type)) return ENOMEM;
-if(((&(to)->name_string)->val = malloc((&(from)->name_string)->len * sizeof(*(&(to)->name_string)->val))) == NULL && (&(from)->name_string)->len != 0)
+if(((&(to)->name_string)->val = calloc((&(from)->name_string)->len, sizeof(*(&(to)->name_string)->val))) == NULL && (&(from)->name_string)->len != 0)
 return ENOMEM;
 for((&(to)->name_string)->len = 0; (&(to)->name_string)->len < (&(from)->name_string)->len; (&(to)->name_string)->len++){
 if(copy_general_string(&(&(from)->name_string)->val[(&(to)->name_string)->len], &(&(to)->name_string)->val[(&(to)->name_string)->len])) return ENOMEM;
index e79df09..5a90af4 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/hdb/hdb.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/hdb/hdb.asn1 */
 /* Do not edit */
 
 #include <stdio.h>
@@ -767,7 +767,7 @@ if(copy_Principal((from)->principal, (to)->principal)) return ENOMEM;
 }else
 (to)->principal = NULL;
 *(&(to)->kvno) = *(&(from)->kvno);
-if(((&(to)->keys)->val = malloc((&(from)->keys)->len * sizeof(*(&(to)->keys)->val))) == NULL && (&(from)->keys)->len != 0)
+if(((&(to)->keys)->val = calloc((&(from)->keys)->len, sizeof(*(&(to)->keys)->val))) == NULL && (&(from)->keys)->len != 0)
 return ENOMEM;
 for((&(to)->keys)->len = 0; (&(to)->keys)->len < (&(from)->keys)->len; (&(to)->keys)->len++){
 if(copy_Key(&(&(from)->keys)->val[(&(to)->keys)->len], &(&(to)->keys)->val[(&(to)->keys)->len])) return ENOMEM;
@@ -813,7 +813,7 @@ if(copy_HDBFlags(&(from)->flags, &(to)->flags)) return ENOMEM;
 if((from)->etypes) {
 (to)->etypes = malloc(sizeof(*(to)->etypes));
 if((to)->etypes == NULL) return ENOMEM;
-if((((to)->etypes)->val = malloc(((from)->etypes)->len * sizeof(*((to)->etypes)->val))) == NULL && ((from)->etypes)->len != 0)
+if((((to)->etypes)->val = calloc(((from)->etypes)->len, sizeof(*((to)->etypes)->val))) == NULL && ((from)->etypes)->len != 0)
 return ENOMEM;
 for(((to)->etypes)->len = 0; ((to)->etypes)->len < ((from)->etypes)->len; ((to)->etypes)->len++){
 *(&((to)->etypes)->val[((to)->etypes)->len]) = *(&((from)->etypes)->val[((to)->etypes)->len]);
index 5196c0e..7dc6314 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/hdb/hdb.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/hdb/hdb.asn1 */
 /* Do not edit */
 
 #ifndef __hdb_asn1_h__
@@ -7,8 +7,6 @@
 #include <stddef.h>
 #include <time.h>
 
-time_t timegm (struct tm*);
-
 #ifndef __asn1_common_definitions__
 #define __asn1_common_definitions__
 
index 918f7d0..096733a 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
+/* Generated from /home/src/src/lib/libkrb5/../../kerberosV/src/lib/asn1/k5.asn1 */
 /* Do not edit */
 
 #ifndef __krb5_asn1_h__
@@ -7,8 +7,6 @@
 #include <stddef.h>
 #include <time.h>
 
-time_t timegm (struct tm*);
-
 #ifndef __asn1_common_definitions__
 #define __asn1_common_definitions__