[tor-bugs] #15652 [Tor]: Base64 code cleanups.

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Apr 10 09:02:32 UTC 2015


#15652: Base64 code cleanups.
-------------------------+------------------------------------
 Reporter:  yawning      |          Owner:  yawning
     Type:  enhancement  |         Status:  new
 Priority:  normal       |      Milestone:  Tor: 0.2.7.x-final
Component:  Tor          |        Version:  Tor: unspecified
 Keywords:  tor-core     |  Actual Points:
Parent ID:               |         Points:
-------------------------+------------------------------------
 The base64 encoder/decoder can use some love of the following sort:

  * The code gated by `USE_OPENSSL_BASE64` should probably be removed,
 since we haven't used OpenSSL's base64 decoder since 2007, and enabling it
 will do weird and broken things (Eg: Inputs that aren't broken up into
 into lines that are < 80 characters will fail to decode correctly).
  * It would be really nice to have a Base64 encode that doesn't
 automatically add `\n` characters.
  * Having a routine to get the encoded output size makes for cleaner code.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15652>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list