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