Re: EEP Light: Option to override private key lookup when using Erlang ssh client

Vipin Nair <[email protected]> Thu, 12 Nov 2015 23:01:12 +0530
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CAM5pN3Zdqmx8QWSXr+Cj3JC9MiZu9RT33i644iArLiEpvL86_Q@mail.gmail.com>
Hello Hans,

> A more general way to pass options to the key callback module would be
> to introduce a second form of the key_cb option:
>   -  keep todays {key_cb, Module::atom()} to keep compatibility
>   -  introduce the variant {key_cb, {Module::atom(), ModuleOptions}}
> [...]
> In that way it is possible to write a callback module with whatever is
> needed as private options.

This will work! In retrospect, I should have done this instead. This is much
simpler and solves my problem. I'll send a new pull request with the suggested
implementation. Thanks!

-- 
Regards,
Vipin
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches