pjc wrote: 
> Won't that break messily if there's ever an unclean shutdown of the
> server (so that shutdownPlugin doesn't undo your rename)?
> 
I don't think it will because at next startup, it will try to load "my"
modules first. If they were needed, then no arm. It the system Perl
version were needed, then the plugin won't work and in both case, when
the user stops LMS properly 'angry user will do that :-), thing will
come back in place, no?
> 
> Why not:
> >   > 
  - Store whichever module loads into a variable so that you can
  > $rsamodule->new_private_key(...)?
  - Load your module as _Crypt::OpenSSL::RSA so that it doesn't
  > require renaming?
  - Try loading your module first, and log when you're falling back
  > onto the system library?
  > > > 
> The reason to try yours first is that you'll at least get consistent
> log messages about what's happening. Relying on the system libraries
> by default invites bit-rot, since your libraries would only be used
> and tested in rare circumstances.
The problem is that the RSA module calls the XSLoader with "Crypt::) and
loads other modules as well (Bignum Random) that would not be searched
under "_Crypt", but under "Crypt", so their loading would fail. And I
don't want to modify the original Crypt .pm files



LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
AppleTV 4, Airport Express, GGMM E5
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=106289

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to