22 lines
975 B
Diff
22 lines
975 B
Diff
|
diff -Naur libreswan-3.26-orig/lib/libswan/asn1.c libreswan-3.26/lib/libswan/asn1.c
|
||
|
--- libreswan-3.26-orig/lib/libswan/asn1.c 2018-09-16 22:45:52.000000000 -0400
|
||
|
+++ libreswan-3.26/lib/libswan/asn1.c 2018-09-17 00:28:06.726985327 -0400
|
||
|
@@ -164,7 +164,7 @@
|
||
|
sig_val->len = len_r;
|
||
|
/* XXX: need to check len_r and len_s fits in this */
|
||
|
sig_val->ptr = alloc_bytes(len_r * 2, "ec points");
|
||
|
- DBG(DBG_PARSING, DBG_log(" sig_val len is %ld",sig_val->len));
|
||
|
+ DBG(DBG_PARSING, DBG_log(" sig_val len is %zu",sig_val->len));
|
||
|
/* copy the values of r into signature */
|
||
|
memcpy(sig_val->ptr,blob->ptr,len_r);
|
||
|
|
||
|
@@ -184,7 +184,7 @@
|
||
|
}
|
||
|
DBG(DBG_PARSING, DBG_log(" len_s is %d",len_s));
|
||
|
sig_val->len += len_s;
|
||
|
- DBG(DBG_PARSING, DBG_log(" sig_val total len is %ld",sig_val->len));
|
||
|
+ DBG(DBG_PARSING, DBG_log(" sig_val total len is %zu",sig_val->len));
|
||
|
/* copy the values of r into signature */
|
||
|
memcpy(sig_val->ptr+len_r,blob->ptr,len_s);
|
||
|
}
|