[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/src
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/src |
Date: |
Fri, 24 Sep 2004 02:48:22 +0200 |
Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv8015
Modified Files:
common.c gsasl.h.in xstart.c
Log Message:
Indent.
--- /home/cvs/gsasl/lib/src/common.c 2004/09/24 00:38:10 1.27
+++ /home/cvs/gsasl/lib/src/common.c 2004/09/24 00:48:22 1.28
@@ -248,7 +248,7 @@
},
#endif /* USE_DIGEST_MD5 */
-#if 0 /* USE_KERBEROS_V5 */
+#if 0 /* USE_KERBEROS_V5 */
{_GSASL_KERBEROS_V5_NAME,
{
#ifdef USE_CLIENT
--- /home/cvs/gsasl/lib/src/gsasl.h.in 2004/09/24 00:38:10 1.25
+++ /home/cvs/gsasl/lib/src/gsasl.h.in 2004/09/24 00:48:22 1.26
@@ -46,71 +46,71 @@
/* Error codes */
typedef enum
- {
- GSASL_OK = 0,
- GSASL_NEEDS_MORE = 1,
- GSASL_UNKNOWN_MECHANISM = 2,
- GSASL_MECHANISM_CALLED_TOO_MANY_TIMES = 3,
- GSASL_TOO_SMALL_BUFFER = 4,
- GSASL_FOPEN_ERROR = 5,
- GSASL_FCLOSE_ERROR = 6,
- GSASL_MALLOC_ERROR = 7,
- GSASL_BASE64_ERROR = 8,
- GSASL_CRYPTO_ERROR = 9,
- GSASL_GCRYPT_ERROR = GSASL_CRYPTO_ERROR,
- GSASL_NEED_CLIENT_ANONYMOUS_CALLBACK = 11,
- GSASL_NEED_CLIENT_PASSWORD_CALLBACK = 12,
- GSASL_NEED_CLIENT_PASSCODE_CALLBACK = 13,
- GSASL_NEED_CLIENT_PIN_CALLBACK = 14,
- GSASL_NEED_CLIENT_AUTHORIZATION_ID_CALLBACK = 15,
- GSASL_NEED_CLIENT_AUTHENTICATION_ID_CALLBACK = 16,
- GSASL_NEED_CLIENT_SERVICE_CALLBACK = 17,
- GSASL_NEED_SERVER_VALIDATE_CALLBACK = 18,
- GSASL_NEED_SERVER_CRAM_MD5_CALLBACK = 19,
- GSASL_NEED_SERVER_DIGEST_MD5_CALLBACK = 20,
- GSASL_NEED_SERVER_EXTERNAL_CALLBACK = 21,
- GSASL_NEED_SERVER_ANONYMOUS_CALLBACK = 22,
- GSASL_NEED_SERVER_REALM_CALLBACK = 23,
- GSASL_NEED_SERVER_SECURID_CALLBACK = 24,
- GSASL_NEED_SERVER_SERVICE_CALLBACK = 25,
- GSASL_NEED_SERVER_GSSAPI_CALLBACK = 26,
- GSASL_NEED_SERVER_RETRIEVE_CALLBACK = 27,
- GSASL_UNICODE_NORMALIZATION_ERROR = 28,
- GSASL_SASLPREP_ERROR = 29,
- GSASL_MECHANISM_PARSE_ERROR = 30,
- GSASL_AUTHENTICATION_ERROR = 31,
- GSASL_CANNOT_GET_CTX = 32,
- GSASL_INTEGRITY_ERROR = 33,
- GSASL_NO_MORE_REALMS = 34,
- GSASL_NO_CLIENT_CODE = 35,
- GSASL_NO_SERVER_CODE = 36,
- /* Mechanism specific errors. */
- GSASL_GSSAPI_RELEASE_BUFFER_ERROR = 37,
- GSASL_GSSAPI_IMPORT_NAME_ERROR = 38,
- GSASL_GSSAPI_INIT_SEC_CONTEXT_ERROR = 39,
- GSASL_GSSAPI_ACCEPT_SEC_CONTEXT_ERROR = 40,
- GSASL_GSSAPI_UNWRAP_ERROR = 41,
- GSASL_GSSAPI_WRAP_ERROR = 42,
- GSASL_GSSAPI_ACQUIRE_CRED_ERROR = 43,
- GSASL_GSSAPI_DISPLAY_NAME_ERROR = 44,
- GSASL_GSSAPI_UNSUPPORTED_PROTECTION_ERROR = 45,
- GSASL_KERBEROS_V5_INIT_ERROR = 46,
- GSASL_KERBEROS_V5_INTERNAL_ERROR = 47,
- GSASL_SHISHI_ERROR = GSASL_KERBEROS_V5_INTERNAL_ERROR,
- GSASL_SECURID_SERVER_NEED_ADDITIONAL_PASSCODE = 48,
- GSASL_SECURID_SERVER_NEED_NEW_PIN = 49,
- GSASL_INVALID_HANDLE = 50,
- GSASL_NO_CALLBACK = 51,
- GSASL_NO_ANONYMOUS_TOKEN = 52,
- GSASL_NO_AUTHID = 53,
- GSASL_NO_AUTHZID = 54,
- GSASL_NO_PASSWORD = 55,
- GSASL_NO_PASSCODE = 56,
- GSASL_NO_PIN = 57,
- GSASL_NO_SERVICE = 58,
- GSASL_NO_HOSTNAME = 59,
- GSASL_CANNOT_VALIDATE = 60
- } Gsasl_rc;
+ {
+ GSASL_OK = 0,
+ GSASL_NEEDS_MORE = 1,
+ GSASL_UNKNOWN_MECHANISM = 2,
+ GSASL_MECHANISM_CALLED_TOO_MANY_TIMES = 3,
+ GSASL_TOO_SMALL_BUFFER = 4,
+ GSASL_FOPEN_ERROR = 5,
+ GSASL_FCLOSE_ERROR = 6,
+ GSASL_MALLOC_ERROR = 7,
+ GSASL_BASE64_ERROR = 8,
+ GSASL_CRYPTO_ERROR = 9,
+ GSASL_GCRYPT_ERROR = GSASL_CRYPTO_ERROR,
+ GSASL_NEED_CLIENT_ANONYMOUS_CALLBACK = 11,
+ GSASL_NEED_CLIENT_PASSWORD_CALLBACK = 12,
+ GSASL_NEED_CLIENT_PASSCODE_CALLBACK = 13,
+ GSASL_NEED_CLIENT_PIN_CALLBACK = 14,
+ GSASL_NEED_CLIENT_AUTHORIZATION_ID_CALLBACK = 15,
+ GSASL_NEED_CLIENT_AUTHENTICATION_ID_CALLBACK = 16,
+ GSASL_NEED_CLIENT_SERVICE_CALLBACK = 17,
+ GSASL_NEED_SERVER_VALIDATE_CALLBACK = 18,
+ GSASL_NEED_SERVER_CRAM_MD5_CALLBACK = 19,
+ GSASL_NEED_SERVER_DIGEST_MD5_CALLBACK = 20,
+ GSASL_NEED_SERVER_EXTERNAL_CALLBACK = 21,
+ GSASL_NEED_SERVER_ANONYMOUS_CALLBACK = 22,
+ GSASL_NEED_SERVER_REALM_CALLBACK = 23,
+ GSASL_NEED_SERVER_SECURID_CALLBACK = 24,
+ GSASL_NEED_SERVER_SERVICE_CALLBACK = 25,
+ GSASL_NEED_SERVER_GSSAPI_CALLBACK = 26,
+ GSASL_NEED_SERVER_RETRIEVE_CALLBACK = 27,
+ GSASL_UNICODE_NORMALIZATION_ERROR = 28,
+ GSASL_SASLPREP_ERROR = 29,
+ GSASL_MECHANISM_PARSE_ERROR = 30,
+ GSASL_AUTHENTICATION_ERROR = 31,
+ GSASL_CANNOT_GET_CTX = 32,
+ GSASL_INTEGRITY_ERROR = 33,
+ GSASL_NO_MORE_REALMS = 34,
+ GSASL_NO_CLIENT_CODE = 35,
+ GSASL_NO_SERVER_CODE = 36,
+ /* Mechanism specific errors. */
+ GSASL_GSSAPI_RELEASE_BUFFER_ERROR = 37,
+ GSASL_GSSAPI_IMPORT_NAME_ERROR = 38,
+ GSASL_GSSAPI_INIT_SEC_CONTEXT_ERROR = 39,
+ GSASL_GSSAPI_ACCEPT_SEC_CONTEXT_ERROR = 40,
+ GSASL_GSSAPI_UNWRAP_ERROR = 41,
+ GSASL_GSSAPI_WRAP_ERROR = 42,
+ GSASL_GSSAPI_ACQUIRE_CRED_ERROR = 43,
+ GSASL_GSSAPI_DISPLAY_NAME_ERROR = 44,
+ GSASL_GSSAPI_UNSUPPORTED_PROTECTION_ERROR = 45,
+ GSASL_KERBEROS_V5_INIT_ERROR = 46,
+ GSASL_KERBEROS_V5_INTERNAL_ERROR = 47,
+ GSASL_SHISHI_ERROR = GSASL_KERBEROS_V5_INTERNAL_ERROR,
+ GSASL_SECURID_SERVER_NEED_ADDITIONAL_PASSCODE = 48,
+ GSASL_SECURID_SERVER_NEED_NEW_PIN = 49,
+ GSASL_INVALID_HANDLE = 50,
+ GSASL_NO_CALLBACK = 51,
+ GSASL_NO_ANONYMOUS_TOKEN = 52,
+ GSASL_NO_AUTHID = 53,
+ GSASL_NO_AUTHZID = 54,
+ GSASL_NO_PASSWORD = 55,
+ GSASL_NO_PASSCODE = 56,
+ GSASL_NO_PIN = 57,
+ GSASL_NO_SERVICE = 58,
+ GSASL_NO_HOSTNAME = 59,
+ GSASL_CANNOT_VALIDATE = 60
+ } Gsasl_rc;
/* Quality of Protection types, used by DIGEST-MD5 */
typedef enum
@@ -194,14 +194,14 @@
/* Mechanism function prototypes. */
typedef int (*Gsasl_init_function) (Gsasl * ctx);
typedef void (*Gsasl_done_function) (Gsasl * ctx);
- typedef int (*Gsasl_start_function) (Gsasl_session * sctx, void **mech_data);
- typedef int (*Gsasl_step_function) (Gsasl_session * sctx,
- void *mech_data,
- const char *input, size_t input_len,
- char **output, size_t * output_len);
- typedef int (*Gsasl_finish_function) (Gsasl_session * sctx, void *mech_data);
- typedef int (*Gsasl_code_function) (Gsasl_session * sctx,
- void *mech_data,
+ typedef int (*Gsasl_start_function) (Gsasl_session * sctx,
+ void **mech_data);
+ typedef int (*Gsasl_step_function) (Gsasl_session * sctx, void *mech_data,
+ const char *input, size_t input_len,
+ char **output, size_t * output_len);
+ typedef int (*Gsasl_finish_function) (Gsasl_session * sctx,
+ void *mech_data);
+ typedef int (*Gsasl_code_function) (Gsasl_session * sctx, void *mech_data,
const char *input, size_t input_len,
char **output, size_t * output_len);
--- /home/cvs/gsasl/lib/src/xstart.c 2004/09/24 00:47:18 1.4
+++ /home/cvs/gsasl/lib/src/xstart.c 2004/09/24 00:48:22 1.5
@@ -22,8 +22,7 @@
#include "internal.h"
static Gsasl_mechanism *
-find_mechanism (const char *mech,
- size_t n_mechs, Gsasl_mechanism * mechs)
+find_mechanism (const char *mech, size_t n_mechs, Gsasl_mechanism * mechs)
{
size_t i;
@@ -39,9 +38,9 @@
static int
setup (Gsasl * ctx,
- const char *mech,
- Gsasl_session * sctx,
- size_t n_mechs, Gsasl_mechanism * mechs, int clientp)
+ const char *mech,
+ Gsasl_session * sctx,
+ size_t n_mechs, Gsasl_mechanism * mechs, int clientp)
{
Gsasl_mechanism *mechptr = NULL;
int res;
@@ -76,9 +75,9 @@
static int
start (Gsasl * ctx,
- const char *mech,
- Gsasl_session ** sctx,
- size_t n_mechs, Gsasl_mechanism * mechs, int clientp)
+ const char *mech,
+ Gsasl_session ** sctx,
+ size_t n_mechs, Gsasl_mechanism * mechs, int clientp)
{
Gsasl_session *out;
int res;
- CVS gsasl/lib/src, (continued)
- CVS gsasl/lib/src, gsasl-commit, 2004/09/22
- CVS gsasl/lib/src, gsasl-commit, 2004/09/22
- CVS gsasl/lib/src, gsasl-commit, 2004/09/22
- CVS gsasl/lib/src, gsasl-commit, 2004/09/22
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src,
gsasl-commit <=
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24