perkeep/pkg/gpgchallenge
mpl 896c8cda74 pkg/gpgchallenge: expose the clients handler
The Client used to start its own listener and http server, so it could
receive the Server's challenge. However, that design does not work when
the Client must be used in an application that is already an http(s)
server.

Therefore, this change adds a Handler method to the Client, that returns
the Client's handler, as well as the pattern it should registered for
with an HTTPS server. This means, it is now the responsibility of the
caller to setup the listener for the Client before the Challenge can be
started.

Change-Id: I160e21c470322f7acad209ac28a15eaeed36c2c4
2016-12-17 20:40:03 +01:00
..
client pkg/gpgchallenge: expose the clients handler 2016-12-17 20:40:03 +01:00
server
gpg.go pkg/gpgchallenge: expose the clients handler 2016-12-17 20:40:03 +01:00