Document FR_TLS_* constants with doxygen prefixes, and expose fr_tls_status_table
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 16:53:33 +0000 (10:53 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 16:53:58 +0000 (10:53 -0600)
src/include/tls-h

index c1a2ee7..2a02824 100644 (file)
@@ -49,22 +49,23 @@ extern "C" {
 typedef struct fr_tls_server_conf_t fr_tls_server_conf_t;
 
 typedef enum {
-       FR_TLS_INVALID = 0,             /* invalid, don't reply */
-       FR_TLS_REQUEST,                 /* request, ok to send, invalid to receive */
-       FR_TLS_RESPONSE,                /* response, ok to receive, invalid to send */
-       FR_TLS_SUCCESS,                 /* success, send success */
-       FR_TLS_FAIL,                    /* fail, send fail */
-       FR_TLS_NOOP,                    /* noop, continue */
-
-       FR_TLS_START,                   /* start, ok to send, invalid to receive */
-       FR_TLS_OK,                      /* ok, continue */
-       FR_TLS_ACK,                     /* acknowledge, continue */
-       FR_TLS_FIRST_FRAGMENT,          /* first fragment */
-       FR_TLS_MORE_FRAGMENTS,          /* more fragments, to send/receive */
-       FR_TLS_LENGTH_INCLUDED,         /* length included */
-       FR_TLS_MORE_FRAGMENTS_WITH_LENGTH,   /* more fragments with length */
-       FR_TLS_HANDLED                  /* tls code has handled it */
+       FR_TLS_INVALID = 0,                     //!< Invalid, don't reply.
+       FR_TLS_REQUEST,                         //!< Request, ok to send, invalid to receive.
+       FR_TLS_RESPONSE,                        //!< Response, ok to receive, invalid to send.
+       FR_TLS_SUCCESS,                         //!< Success, send success.
+       FR_TLS_FAIL,                            //!< Fail, send fail.
+       FR_TLS_NOOP,                            //!< Noop, continue.
+
+       FR_TLS_START,                           //!< Start, ok to send, invalid to receive.
+       FR_TLS_OK,                              //!< Ok, continue.
+       FR_TLS_ACK,                             //!< Acknowledge, continue.
+       FR_TLS_FIRST_FRAGMENT,                  //!< First fragment.
+       FR_TLS_MORE_FRAGMENTS,                  //!< More fragments, to send/receive.
+       FR_TLS_LENGTH_INCLUDED,                 //!< Length included.
+       FR_TLS_MORE_FRAGMENTS_WITH_LENGTH,      //!< More fragments with length.
+       FR_TLS_HANDLED                          //!< TLS code has handled it.
 } fr_tls_status_t;
+extern FR_NAME_NUMBER const fr_tls_status_table[];
 
 #define MAX_RECORD_SIZE 16384