convert PKey to a type that can be instantiated
diff --git a/src/ssl/context.c b/src/ssl/context.c
index cb9aa88..ae669d0 100644
--- a/src/ssl/context.c
+++ b/src/ssl/context.c
@@ -550,7 +550,7 @@
 	if (!PyArg_ParseTuple(args, "O:use_privatekey", &pkey))
 	    return NULL;
 
-	if (strcmp(pkey->ob_type->tp_name, "PKey") != 0 ||
+	if (strcmp(pkey->ob_type->tp_name, "OpenSSL.crypto.PKey") != 0 ||
 	    pkey->ob_type->tp_basicsize != sizeof(crypto_PKeyObj))
 	{
 	    PyErr_SetString(PyExc_TypeError, "Expected a PKey object");