On Sat, 3 Nov 2018 at 10:40, D. Hugh Redelmeier <[email protected]> wrote:
> commit 62a04f2022e4b450d87b0f9eacb1ea7840c2701f > Author: D. Hugh Redelmeier <[email protected]> > Date: Sat Nov 3 10:28:49 2018 -0400 > > lib/libswan/asn1.c: eliminate loop from is_printablestring() > > A bounded version of strspn(3) would be the best for this routine but > none exists so a bit of a dance must be done with the last byte of the > chunk. I have to ask. Could isprint() be used, or is there ASN.1 magic involved in the decision of what is printable? (yea, there isn't shunk_strspn()) Andrew _______________________________________________ Swan-dev mailing list [email protected] https://lists.libreswan.org/mailman/listinfo/swan-dev
