summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2014-05-22 03:36:23 +0000
committerguenther <>2014-05-22 03:36:23 +0000
commit18f7251ad0dcaf938e9db2956a9c1d88ea7977b8 (patch)
tree16593c0c3d5c98bd569150f6ae4f36ce85477ad2 /src
parent01eb5b7fee054556912d8459c45fe0c08f11c08f (diff)
downloadopenbsd-18f7251ad0dcaf938e9db2956a9c1d88ea7977b8.tar.gz
openbsd-18f7251ad0dcaf938e9db2956a9c1d88ea7977b8.tar.bz2
openbsd-18f7251ad0dcaf938e9db2956a9c1d88ea7977b8.zip
Make this build cleanly even with UTF8_{putc,getc} moved from the
public header to the internal. Make some variables unsigned to eliminate some warnings
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/utf8/Makefile4
-rw-r--r--src/regress/lib/libcrypto/utf8/utf8test.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/utf8/Makefile b/src/regress/lib/libcrypto/utf8/Makefile
index 4940e60050..8c9f5f8a95 100644
--- a/src/regress/lib/libcrypto/utf8/Makefile
+++ b/src/regress/lib/libcrypto/utf8/Makefile
@@ -1,7 +1,9 @@
1# $OpenBSD: Makefile,v 1.1 2014/05/18 22:04:14 guenther Exp $ 1# $OpenBSD: Makefile,v 1.2 2014/05/22 03:36:23 guenther Exp $
2 2
3PROG= utf8test 3PROG= utf8test
4CPPFLAGS+=-I${.CURDIR}/../../../../lib/libssl/src/crypto/asn1
4LDADD= -lcrypto 5LDADD= -lcrypto
5DPADD= ${LIBCRYPTO} 6DPADD= ${LIBCRYPTO}
7WARNINGS=Yes
6 8
7.include <bsd.regress.mk> 9.include <bsd.regress.mk>
diff --git a/src/regress/lib/libcrypto/utf8/utf8test.c b/src/regress/lib/libcrypto/utf8/utf8test.c
index 453ab43a40..5da5709746 100644
--- a/src/regress/lib/libcrypto/utf8/utf8test.c
+++ b/src/regress/lib/libcrypto/utf8/utf8test.c
@@ -23,6 +23,7 @@
23#include <err.h> 23#include <err.h>
24 24
25#include <openssl/asn1.h> 25#include <openssl/asn1.h>
26#include "asn1_locl.h" /* peek into the internals */
26 27
27#define UNCHANGED 0xfedcba98 28#define UNCHANGED 0xfedcba98
28 29
@@ -39,7 +40,8 @@ main(void)
39 unsigned char testbuf[] = "012345"; 40 unsigned char testbuf[] = "012345";
40 const unsigned char zerobuf[sizeof testbuf] = { 0 }; 41 const unsigned char zerobuf[sizeof testbuf] = { 0 };
41 unsigned long value; 42 unsigned long value;
42 int i, j, k, l, ret; 43 unsigned int i, j, k, l;
44 int ret;
43 45
44 /* 46 /*
45 * First, verify UTF8_getc() 47 * First, verify UTF8_getc()