title: SSH Keyboard Interactive authentication
body: <p>I currently try to extend an libssh2 Wrapper in Objective-C.</p>
  
  <p>I'm trying to implement the <code>libssh2_userauth_keyboard_interactive</code> method. My problem is the response callback.</p>
  
  <p>I found this implementation on the net that bypasses the "real" interactivity and uses the actual password to make the authentication possible:</p>
  
  <pre><code>int error = libssh2_userauth_keyboard_interactive(session, [username UTF8String], &amp;kbdCallback);
  
  static void kbdCallback (const char *name, int name_len, const char *instruction, int instruction_len, int num_prompts, const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts, LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, void **abstract)
  {
      responses[0].text = (char *)[password UTF8String];   // resp. (char *)[@"test" UTF8String]
      responses[0].length = strlen([password UTF8String]); // resp. (char *)[@"test" UTF8String]
  }
  </code></pre>
  
  <p>One of my problems is to access the instance variable <code>password</code> within the <code>static void</code> call and my other problem is that I get SIGABRT when I try to call the method (I used a fixed string to test if that works).</p>
  
  <p>Is there any possibility to get that working ?!</p>
  
  <p>Julian</p>