plan9fox/sys/include/ape
cinap_lenrek 88060e7501 libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer
We need a way to parse a rsa certificate request and return the public
key and subject names. The new function X509reqtoRSApub() works the
same way as X509toRSApub() but on a certificate request.

We also need to support certificates that are valid for multiple domain
names (as tlshand does not support certificate selection). For this
reason, a comma separated list is returned as the certificate subject,
making it symmetric to X509rsareq() handling.

A little helper is provided with this change (auth/x5092pub) that takes
a certificate (or a certificate request when -r flag is provided) and
outputs the RSA public key in plan 9 format appended with the subject
attribute.
2021-07-04 22:00:24 +00:00
..
arpa
netinet
sys
ar.h
assert.h
auth.h libauth: add procsetuser() function to change user id of the calling process 2020-12-19 17:46:55 +01:00
bio.h
bsd.h
bzlib.h
ctype.h ape/ctype.h: add isblank, fix functions (thanks staalmannen) 2020-08-29 11:09:20 -07:00
cursor.h
dirent.h
draw.h
errno.h
error.h
event.h
fcntl.h
fmt.h
grp.h
inttypes.h [9front] ape: remove _SUSV2_SOURCE guard from inttypes.h 2021-01-23 19:47:12 -08:00
keyboard.h
lib9.h ape/lib9: expose fd2path (thanks phil9) 2021-02-20 21:02:07 -08:00
libl.h
libnet.h
libsec.h libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer 2021-07-04 22:00:24 +00:00
libv.h
limits.h ape/limits.h: fix typo in (U)LLONG_MAX 2020-09-21 11:43:31 -07:00
locale.h
lock.h
math.h ape/libm: implement log2 in libc 2021-01-30 09:19:57 -08:00
mouse.h
mp.h
netdb.h
Plan9libnet.h
plumb.h ape: make libplumb available under ape. 2020-06-05 11:28:47 -07:00
pwd.h
qlock.h
select.h
setjmp.h
signal.h
stdbool.h Add stdbool.h to ape 2020-05-17 08:18:49 -07:00
stddef.h turn ptrdiff_t into a 64 bit type 2020-03-24 14:45:15 -07:00
stdint.h bring stdint.h closer to spec 2020-05-06 15:39:12 -07:00
stdio.h stdio.h: correct return type of putc 2020-08-10 19:36:09 -07:00
stdlib.h Add mkstemp to stdlib.h 2019-09-09 15:58:39 +01:00
string.h libap: add strndup 2020-12-17 19:20:04 -08:00
termios.h
time.h
u.h
unistd.h use #error when missing define 2020-05-01 13:29:08 -07:00
utf.h
utime.h
zlib.h