der: implement a buffered pem reader#839
Conversation
| /// Inner PEM decoder. | ||
| decoder: Decoder<'i>, | ||
| /// Inner PEM decoder wrapped in a BufReader. | ||
| reader: RefCell<utils::BufReader<'i>>, |
There was a problem hiding this comment.
I don't see how there could ever be two instances of borrow for this refcell and I think this is safe
|
oooh, fun! I triggered the fuzzer! |
|
@baloo looking at this so far it feels like a lot of indirection. You have It feels to me like |
|
Yeah, it could very well be, |
|
I'd be easier if I was to just base64 decode the whole payload and have that in a buffer. Any opinion? |
|
That's how the existing
They do that because they use the If this feature is implemented correctly, it can eliminate the The |
dc87e09 to
2fc939b
Compare
This also fixes the pem reader for `x509-cert::Certificate`
2fc939b to
c73c449
Compare
This fixes the parsing of x509 certificates from Pem format and brings a test for it.