shithub: rd

Download patch

ref: 358c45c5326b463845e900fd8f16475c85a8d681
parent: 52ec96d00007df020f520b2003dec903220726b8
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Jan 4 18:33:30 EST 2021

make it build under 9front (thanks LordCreepity)

--- a/mkfile
+++ b/mkfile
@@ -1,5 +1,5 @@
 </$objtype/mkfile
-<$PLAN9/src/mkhdr
+#<$PLAN9/src/mkhdr
 
 TARG=rd
 BIN=/$objtype/bin
@@ -34,7 +34,7 @@
 CLEANFILES=$O.thread
 
 </sys/src/cmd/mkone
-<$PLAN9/src/mkone
+#<$PLAN9/src/mkone
 
 $TARG: mkfile
 
--- a/rle.c
+++ b/rle.c
@@ -138,7 +138,7 @@
 		len *= pixelsize;
 		if(wp+len > we){
 		   Overrun:
-			werrstr("unrle: output buffer is %uld bytes short", wp+len-we);
+			werrstr("unrle: output buffer is %zd bytes short", (intptr)(wp+len-we));
 			return nil;
 		}
 
--- a/tls.c
+++ b/tls.c
@@ -17,8 +17,8 @@
 		return 0;
 	}
 	sha1(cert, certlen, digest, nil);
-	table = initThumbprints("/sys/lib/tls/rdp", "/sys/lib/tls/rdp.exclude");
-	if(!table || !okThumbprint(digest, table)){
+	table = initThumbprints("/sys/lib/tls/rdp", "/sys/lib/tls/rdp.exclude", "x224");
+	if(!table || !okThumbprint(digest, SHA1dlen, table)){
 		werrstr("server certificate %.*H not recognized", SHA1dlen, digest);
 		return 0;
 	}