shithub: riscv

Download patch

ref: 02cfcfeab46f36aad95263ed40d19df7bd5eddef
parent: f785d4da07349c7bb250eb00a3f2bed3eb170828
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 19 17:06:17 EDT 2015

libauthsrv: generalize ticket service, not hardcoding ticket format and DES encryption

this is in preparation for replacing DES ticket encryption with
something better. but first need to make the code stop making
assumptions.

the wire encoding of the Ticket might be variable length
with TICKETLEN just giving an upper bound. the details will be
handled by libauthsrv _asgetticket() and _asgetresp() funciotns.

the Authenticator and Passwordreq structures are encrypted
with the random ticket key. The encryption schmeme will depend
on the Ticket format used, so we pass the Ticket* structure
instead of the DES key.

introduce Authkey structure that will hold all the required
cryptographic keys instead of passing DES key.