~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to src/crypto/pkey.c

  • Committer: Jean-Paul Calderone
  • Date: 2008-03-05 04:39:59 UTC
  • Revision ID: exarkun@boson-20080305043959-kk33dnvj7onehb2g
Add some unit tests for OpenSSL.crypto.PKey and fix a bug in the error handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
    }
70
70
 
71
71
    PyErr_SetString(crypto_Error, "No such key type");
72
 
    Py_INCREF(Py_None);
73
 
    return Py_None;
 
72
    return NULL;
74
73
}
75
74
 
76
75
static char crypto_PKey_bits_doc[] = "\n\