title: Using a BSD licence library, which uses a GPL library, for the iPhone
body: <p>I'm getting rather confused when looking over the details of the various licenses and was wondering if someone could give me a hand. Basically, I'm looking at making a simple SSH client to release on the app store. All other SSH clients on the app store charge and, although I'm sure they'd be better than what I'd make, I'd like to add a free option. For right now I'd be just developing it for personal use or within the company I work for, which I realize means I don't need to worry about GPL incompatibilities, but I figure I'd be best setting it up to work how I want in in the first place rather than rebuilding at a later stage around a different core.</p>
  
  <p>My idea is to use a pre-built SSH library, but this idea seems fraught with legal issues.</p>
  
  <ul>
  <li>libssh is released under lgpl,
  however, and I don't want to get into
  the legal mess that is the iPhone dev
  lisence and the GPL... I hear they're
  largely incompatible, and would
  prefer to avoid any legal minefields
  if possible.</li>
  <li>libssh2 is released
  under a BSD license, which AFAIK can 
  be used with the iPhone dev lisence. 
  Perfect, I think. As I'm looking over 
  <a href="http://sites.google.com/site/olipion/cross-compilation/libssh2" rel="nofollow noreferrer">some instructions for compiling 
  libssh2 for iphone</a>, however, I 
  notice that it uses 3 libraries from 
  GnuPG which are released under 
  the (L)GPL... Does this mean using 
  libssh2 leads me into the same legal 
  minefield as libssh? Is there some 
  way to sub these libraries for 
  non-GPL equivalents?</li>
  <li>Are there any alternative SSH 
  libraries which are available under 
  iPhone-compatible licenses?</li>
  </ul>