Re: [linux-minidisc] "netmdcli send" does not break on errors


Am Sonntag, den 18.09.2011, 17:05 +0200 schrieb Thomas Arp:
> The key generation/exchange mechanism should go into 
> libnetmd. Maybe we should provide something like netmd_start_session() 
> and netmd_end_session() externally which set up and clean a secure 
> session  inside libnetmd.

Indeed it should. If you are going to implement that, you might want to
take a look at the MDSession object in netmd/libnetmd.py. While I don't
want to imply this is for sure the best way to design the interface, at
least that interface seemed to work out quite nicely for the
downloadhack script and gave the impression that will work for more
complex implementations, too.

Regards,
  Michael Karcher