git: 9front

Download patch

ref: 942da4b458eed6c9e4eb4a2169882092c82aee9e
parent: 2b271a61bdcbe135098822901686710594c90384
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 16 00:06:17 EDT 2017

ape/libsec: fix the build, bring ape libsec.h in sync with plan9 version

--- a/sys/include/ape/libsec.h
+++ b/sys/include/ape/libsec.h
@@ -364,6 +364,7 @@
 RSApub*		rsaprivtopub(RSApriv*);
 RSApub*		X509toRSApub(uchar*, int, char*, int);
 RSApriv*	asn1toRSApriv(uchar*, int);
+RSApub*		asn1toRSApub(uchar*, int);
 void		asn1dump(uchar *der, int len);
 uchar*		decodePEM(char *s, char *type, int *len, char **new_s);
 PEMChain*	decodepemchain(char *s, char *type);
@@ -374,6 +375,12 @@
 
 void		X509dump(uchar *cert, int ncert);
 
+mpint*		pkcs1padbuf(uchar *buf, int len, mpint *modulus, int blocktype);
+int		pkcs1unpadbuf(uchar *buf, int len, mpint *modulus, int blocktype);
+int		asn1encodeRSApub(RSApub *pk, uchar *buf, int len);
+int		asn1encodedigest(DigestState* (*fun)(uchar*, ulong, uchar*, DigestState*),
+			uchar *digest, uchar *buf, int len);
+ 
 /*
  * elgamal
  */
--