aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h41
1 files changed, 3 insertions, 38 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index f1256149..36961275 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -1450,7 +1450,7 @@ MHD_queue_auth_fail_response (struct MHD_Connection *connection,
1450 */ 1450 */
1451char * 1451char *
1452MHD_basic_auth_get_username_password(struct MHD_Connection *connection, 1452MHD_basic_auth_get_username_password(struct MHD_Connection *connection,
1453 char** password); 1453 char** password);
1454 1454
1455/** 1455/**
1456 * Queues a response to request basic authentication from the client 1456 * Queues a response to request basic authentication from the client
@@ -1461,43 +1461,8 @@ MHD_basic_auth_get_username_password(struct MHD_Connection *connection,
1461 */ 1461 */
1462int 1462int
1463MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection, 1463MHD_queue_basic_auth_fail_response(struct MHD_Connection *connection,
1464 const char *realm, 1464 const char *realm,
1465 struct MHD_Response *response); 1465 struct MHD_Response *response);
1466
1467/**
1468 * Get the client's certificate
1469 *
1470 * @param connection The MHD connection structure
1471 * @return NULL if no valid client certificate could be found, a pointer
1472 * to the certificate if found
1473 */
1474void*
1475MHD_cert_auth_get_certificate(struct MHD_Connection *connection);
1476
1477/**
1478 * Get the distinguished name from the client's certificate
1479 *
1480 * @param connection The MHD connection structure
1481 * @return NULL if no dn or certificate could be found, a pointer
1482 * to the dn if found
1483 */
1484char *
1485MHD_cert_auth_get_dn(struct MHD_Connection *connection);
1486
1487/**
1488 * Get the alternative name of specified type from the client's certificate
1489 *
1490 * @param connection The MHD connection structure
1491 * @param nametype The requested name type
1492 * @param index The position of the alternative name if multiple names are
1493 * matching the requested type, 0 for the first matching name
1494 * @return NULL if no matching alternative name could be found, a pointer
1495 * to the alternative name if found
1496 */
1497char *
1498MHD_cert_auth_get_alt_name(struct MHD_Connection *connection,
1499 int nametype,
1500 unsigned int index);
1501 1466
1502/* ********************** generic query functions ********************** */ 1467/* ********************** generic query functions ********************** */
1503 1468