Commit Graph

4 Commits

Author SHA1 Message Date
Yawning Angel
51a8dd5a86 Fix logging again.
On second thought instead of using log.Panicf(), panic() and do the
logging with recover().  This somewhat centralizes logging in
obfs4proxy, which will be easier to change when I invariably decide to
do logging differently in the future.
2014-05-12 23:04:39 +00:00
Yawning Angel
9712aec73b Preliminary support padding, log on panic.
This adds preliminary support for data padding by adding another layer
of encapsulation inside each AEAD frame containing a type and length.
For now, data is still sent unpadded, but the infrastructure for
supporting it is mostly there.

Additionally, use log.Panic[f]() instead of panic through out the code
so that some panics are logged.
2014-05-12 04:51:06 +00:00
Yawning Angel
f76f142340 Change documentation/comments to reflect reality (No functional changes). 2014-05-11 21:55:34 +00:00
Yawning Angel
ef38b844f9 Initial import. 2014-05-09 10:23:58 +00:00