Added missing signature algorithm reflection functions
[openssl.git] / ssl / t1_lib.c
index ddafa0c623dab82f18e738609f8dd344bd3c8353..fe13a39c38cd2af7d8a787d2587854e34e161699 100644 (file)
@@ -1122,6 +1122,14 @@ int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid)
     return 1;
 }
 
+int SSL_get_signature_type_nid(const SSL *s, int *pnid)
+{
+    if (s->s3->tmp.sigalg == NULL)
+        return 0;
+    *pnid = s->s3->tmp.sigalg->sig;
+    return 1;
+}
+
 /*
  * Set a mask of disabled algorithms: an algorithm is disabled if it isn't
  * supported, doesn't appear in supported signature algorithms, isn't supported