gsasl-compat.h File Reference

Go to the source code of this file.

Defines

#define __attribute__(Spec)

Typedefs

typedef Gsasl Gsasl_ctx __attribute__ ((deprecated))
typedef int(* Gsasl_client_callback_anonymous )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_authentication_id )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_authorization_id )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_password )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_passcode )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_pin )(Gsasl_session *sctx, char *suggestion, char *out, size_t *outlen)
typedef int(* Gsasl_client_callback_service )(Gsasl_session *sctx, char *service, size_t *servicelen, char *hostname, size_t *hostnamelen, char *servicename, size_t *servicenamelen)
typedef Gsasl_qop(* Gsasl_client_callback_qop )(Gsasl_session *sctx, Gsasl_qop serverqops)
typedef size_t(* Gsasl_client_callback_maxbuf )(Gsasl_session *sctx, size_t servermaxbuf)
typedef int(* Gsasl_client_callback_realm )(Gsasl_session *sctx, char *out, size_t *outlen)
typedef int(* Gsasl_server_callback_retrieve )(Gsasl_session *sctx, const char *authentication_id, const char *authorization_id, const char *realm, char *key, size_t *keylen)
typedef int(* Gsasl_server_callback_validate )(Gsasl_session *sctx, const char *authorization_id, const char *authentication_id, const char *password)
typedef int(* Gsasl_server_callback_gssapi )(Gsasl_session *sctx, const char *clientname, const char *authentication_id)
typedef int(* Gsasl_server_callback_securid )(Gsasl_session *sctx, const char *authentication_id, const char *authorization_id, const char *passcode, char *pin, char *suggestpin, size_t *suggestpinlen)
typedef int(* Gsasl_server_callback_cram_md5 )(Gsasl_session *sctx, char *username, char *challenge, char *response)
typedef int(* Gsasl_server_callback_digest_md5 )(Gsasl_session *sctx, char *username, char *realm, char *secrethash)
typedef int(* Gsasl_server_callback_service )(Gsasl_session *sctx, char *service, size_t *servicelen, char *hostname, size_t *hostnamelen)
typedef int(* Gsasl_server_callback_external )(Gsasl_session *sctx)
typedef int(* Gsasl_server_callback_anonymous )(Gsasl_session *sctx, const char *token)
typedef int(* Gsasl_server_callback_realm )(Gsasl_session *sctx, char *out, size_t *outlen, size_t nth)
typedef Gsasl_qop(* Gsasl_server_callback_qop )(Gsasl_session *sctx)
typedef size_t(* Gsasl_server_callback_maxbuf )(Gsasl_session *sctx)
typedef Gsasl_cipher(* Gsasl_server_callback_cipher )(Gsasl_session *sctx)

Enumerations

enum  {
  GSASL_TOO_SMALL_BUFFER = 4, GSASL_FOPEN_ERROR = 5, GSASL_FCLOSE_ERROR = 6, GSASL_GCRYPT_ERROR = GSASL_CRYPTO_ERROR,
  GSASL_CANNOT_GET_CTX = 32, 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_NO_MORE_REALMS = 34,
  GSASL_INVALID_HANDLE = 50
}

Functions

GSASL_API int gsasl_client_listmech (Gsasl *ctx, char *out, size_t *outlen) __attribute__((deprecated))
GSASL_API int gsasl_server_listmech (Gsasl *ctx, char *out, size_t *outlen) __attribute__((deprecated))
GSASL_API int gsasl_client_step (Gsasl_session *sctx, const char *input, size_t input_len, char *output, size_t *output_len) __attribute__((deprecated))
GSASL_API int gsasl_client_step_base64 (Gsasl_session *sctx, const char *b64input, char *b64output, size_t b64output_len) __attribute__((deprecated))
GSASL_API int gsasl_server_step (Gsasl_session *sctx, const char *input, size_t input_len, char *output, size_t *output_len) __attribute__((deprecated))
GSASL_API int gsasl_server_step_base64 (Gsasl_session *sctx, const char *b64input, char *b64output, size_t b64output_len) __attribute__((deprecated))
GSASL_API void gsasl_client_finish (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API void gsasl_server_finish (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API Gsaslgsasl_client_ctx_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API Gsaslgsasl_server_ctx_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API void gsasl_client_application_data_set (Gsasl_session *sctx, void *application_data) __attribute__((deprecated))
GSASL_API void * gsasl_client_application_data_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API void gsasl_server_application_data_set (Gsasl_session *sctx, void *application_data) __attribute__((deprecated))
GSASL_API void * gsasl_server_application_data_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API int gsasl_randomize (int strong, char *data, size_t datalen) __attribute__((deprecated))
GSASL_API Gsaslgsasl_ctx_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API int gsasl_encode_inline (Gsasl_session *sctx, const char *input, size_t input_len, char *output, size_t *output_len) __attribute__((deprecated))
GSASL_API int gsasl_decode_inline (Gsasl_session *sctx, const char *input, size_t input_len, char *output, size_t *output_len) __attribute__((deprecated))
GSASL_API void gsasl_application_data_set (Gsasl *ctx, void *appdata) __attribute__((deprecated))
GSASL_API void * gsasl_application_data_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_appinfo_set (Gsasl_session *sctx, void *appdata) __attribute__((deprecated))
GSASL_API void * gsasl_appinfo_get (Gsasl_session *sctx) __attribute__((deprecated))
GSASL_API const char * gsasl_server_suggest_mechanism (Gsasl *ctx, const char *mechlist) __attribute__((deprecated))
GSASL_API int gsasl_base64_encode (char const *src, size_t srclength, char *target, size_t targsize) __attribute__((deprecated))
GSASL_API int gsasl_base64_decode (char const *src, char *target, size_t targsize) __attribute__((deprecated))
GSASL_API char * gsasl_stringprep_nfkc (const char *in, ssize_t len) __attribute__((deprecated))
GSASL_API char * gsasl_stringprep_saslprep (const char *in, int *stringprep_rc) __attribute__((deprecated))
GSASL_API char * gsasl_stringprep_trace (const char *in, int *stringprep_rc) __attribute__((deprecated))
GSASL_API int gsasl_md5pwd_get_password (const char *filename, const char *username, char *key, size_t *keylen) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_authorization_id_set (Gsasl *ctx, Gsasl_client_callback_authorization_id cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_authorization_id 
gsasl_client_callback_authorization_id_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_authentication_id_set (Gsasl *ctx, Gsasl_client_callback_authentication_id cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_authentication_id 
gsasl_client_callback_authentication_id_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_anonymous_set (Gsasl *ctx, Gsasl_client_callback_anonymous cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_anonymous 
gsasl_client_callback_anonymous_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_password_set (Gsasl *ctx, Gsasl_client_callback_password cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_password 
gsasl_client_callback_password_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_passcode_set (Gsasl *ctx, Gsasl_client_callback_passcode cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_passcode 
gsasl_client_callback_passcode_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_pin_set (Gsasl *ctx, Gsasl_client_callback_pin cb) __attribute__((deprecated))
GSASL_API Gsasl_client_callback_pin gsasl_client_callback_pin_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_service_set (Gsasl *ctx, Gsasl_client_callback_service cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_service 
gsasl_client_callback_service_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_qop_set (Gsasl *ctx, Gsasl_client_callback_qop cb) __attribute__((deprecated))
GSASL_API Gsasl_client_callback_qop gsasl_client_callback_qop_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_maxbuf_set (Gsasl *ctx, Gsasl_client_callback_maxbuf cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_maxbuf 
gsasl_client_callback_maxbuf_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_client_callback_realm_set (Gsasl *ctx, Gsasl_client_callback_realm cb) __attribute__((deprecated))
GSASL_API
Gsasl_client_callback_realm 
gsasl_client_callback_realm_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_validate_set (Gsasl *ctx, Gsasl_server_callback_validate cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_validate 
gsasl_server_callback_validate_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_retrieve_set (Gsasl *ctx, Gsasl_server_callback_retrieve cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_retrieve 
gsasl_server_callback_retrieve_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_cram_md5_set (Gsasl *ctx, Gsasl_server_callback_cram_md5 cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_cram_md5 
gsasl_server_callback_cram_md5_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_digest_md5_set (Gsasl *ctx, Gsasl_server_callback_digest_md5 cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_digest_md5 
gsasl_server_callback_digest_md5_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_external_set (Gsasl *ctx, Gsasl_server_callback_external cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_external 
gsasl_server_callback_external_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_anonymous_set (Gsasl *ctx, Gsasl_server_callback_anonymous cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_anonymous 
gsasl_server_callback_anonymous_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_realm_set (Gsasl *ctx, Gsasl_server_callback_realm cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_realm 
gsasl_server_callback_realm_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_qop_set (Gsasl *ctx, Gsasl_server_callback_qop cb) __attribute__((deprecated))
GSASL_API Gsasl_server_callback_qop gsasl_server_callback_qop_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_maxbuf_set (Gsasl *ctx, Gsasl_server_callback_maxbuf cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_maxbuf 
gsasl_server_callback_maxbuf_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_cipher_set (Gsasl *ctx, Gsasl_server_callback_cipher cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_cipher 
gsasl_server_callback_cipher_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_securid_set (Gsasl *ctx, Gsasl_server_callback_securid cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_securid 
gsasl_server_callback_securid_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_gssapi_set (Gsasl *ctx, Gsasl_server_callback_gssapi cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_gssapi 
gsasl_server_callback_gssapi_get (Gsasl *ctx) __attribute__((deprecated))
GSASL_API void gsasl_server_callback_service_set (Gsasl *ctx, Gsasl_server_callback_service cb) __attribute__((deprecated))
GSASL_API
Gsasl_server_callback_service 
gsasl_server_callback_service_get (Gsasl *ctx) __attribute__((deprecated))

Variables

enum { ... }  deprecated


Define Documentation

#define __attribute__ ( Spec   ) 

Definition at line 29 of file gsasl-compat.h.


Typedef Documentation

typedef Gsasl_session Gsasl_session_ctx __attribute__((deprecated))

Definition at line 63 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_anonymous)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 158 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_authentication_id)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 160 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_authorization_id)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 163 of file gsasl-compat.h.

typedef size_t(* Gsasl_client_callback_maxbuf)(Gsasl_session *sctx, size_t servermaxbuf)

Definition at line 182 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_passcode)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 168 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_password)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 166 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_pin)(Gsasl_session *sctx, char *suggestion, char *out, size_t *outlen)

Definition at line 170 of file gsasl-compat.h.

Definition at line 180 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_realm)(Gsasl_session *sctx, char *out, size_t *outlen)

Definition at line 184 of file gsasl-compat.h.

typedef int(* Gsasl_client_callback_service)(Gsasl_session *sctx, char *service, size_t *servicelen, char *hostname, size_t *hostnamelen, char *servicename, size_t *servicenamelen)

Definition at line 173 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_anonymous)(Gsasl_session *sctx, const char *token)

Definition at line 217 of file gsasl-compat.h.

Definition at line 223 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_cram_md5)(Gsasl_session *sctx, char *username, char *challenge, char *response)

Definition at line 204 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_digest_md5)(Gsasl_session *sctx, char *username, char *realm, char *secrethash)

Definition at line 208 of file gsasl-compat.h.

Definition at line 216 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_gssapi)(Gsasl_session *sctx, const char *clientname, const char *authentication_id)

Definition at line 195 of file gsasl-compat.h.

typedef size_t(* Gsasl_server_callback_maxbuf)(Gsasl_session *sctx)

Definition at line 222 of file gsasl-compat.h.

Definition at line 221 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_realm)(Gsasl_session *sctx, char *out, size_t *outlen, size_t nth)

Definition at line 219 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_retrieve)(Gsasl_session *sctx, const char *authentication_id, const char *authorization_id, const char *realm, char *key, size_t *keylen)

Definition at line 186 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_securid)(Gsasl_session *sctx, const char *authentication_id, const char *authorization_id, const char *passcode, char *pin, char *suggestpin, size_t *suggestpinlen)

Definition at line 198 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_service)(Gsasl_session *sctx, char *service, size_t *servicelen, char *hostname, size_t *hostnamelen)

Definition at line 211 of file gsasl-compat.h.

typedef int(* Gsasl_server_callback_validate)(Gsasl_session *sctx, const char *authorization_id, const char *authentication_id, const char *password)

Definition at line 191 of file gsasl-compat.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
GSASL_TOO_SMALL_BUFFER 
GSASL_FOPEN_ERROR 
GSASL_FCLOSE_ERROR 
GSASL_GCRYPT_ERROR 
GSASL_CANNOT_GET_CTX 
GSASL_NEED_CLIENT_ANONYMOUS_CALLBACK 
GSASL_NEED_CLIENT_PASSWORD_CALLBACK 
GSASL_NEED_CLIENT_PASSCODE_CALLBACK 
GSASL_NEED_CLIENT_PIN_CALLBACK 
GSASL_NEED_CLIENT_AUTHORIZATION_ID_CALLBACK 
GSASL_NEED_CLIENT_AUTHENTICATION_ID_CALLBACK 
GSASL_NEED_CLIENT_SERVICE_CALLBACK 
GSASL_NEED_SERVER_VALIDATE_CALLBACK 
GSASL_NEED_SERVER_CRAM_MD5_CALLBACK 
GSASL_NEED_SERVER_DIGEST_MD5_CALLBACK 
GSASL_NEED_SERVER_EXTERNAL_CALLBACK 
GSASL_NEED_SERVER_ANONYMOUS_CALLBACK 
GSASL_NEED_SERVER_REALM_CALLBACK 
GSASL_NEED_SERVER_SECURID_CALLBACK 
GSASL_NEED_SERVER_SERVICE_CALLBACK 
GSASL_NEED_SERVER_GSSAPI_CALLBACK 
GSASL_NEED_SERVER_RETRIEVE_CALLBACK 
GSASL_UNICODE_NORMALIZATION_ERROR 
GSASL_NO_MORE_REALMS 
GSASL_INVALID_HANDLE 

Definition at line 34 of file gsasl-compat.h.


Function Documentation

GSASL_API void* gsasl_appinfo_get ( Gsasl_session sctx  ) 

gsasl_appinfo_get:

Parameters:
sctx libgsasl session handle.
Retrieve application specific data from libgsasl session handle. The application data is set using gsasl_appinfo_set(). It is normally used by the application to maintain state between the main program and the callback.

Return value: Returns the application specific data, or NULL.

Deprecated: Use gsasl_callback_hook_get() instead.

Definition at line 596 of file obsolete.c.

References Gsasl_session::application_data.

Referenced by gsasl_client_application_data_get(), and gsasl_server_application_data_get().

GSASL_API void gsasl_appinfo_set ( Gsasl_session sctx,
void *  appdata 
)

gsasl_appinfo_set:

Parameters:
sctx libgsasl session handle.
appdata opaque pointer to application specific data.
Store application specific data in the libgsasl session handle. The application data can be later (for instance, inside a callback) be retrieved by calling gsasl_appinfo_get(). It is normally used by the application to maintain state between the main program and the callback.

Deprecated: Use gsasl_callback_hook_set() instead.

Definition at line 577 of file obsolete.c.

References Gsasl_session::application_data.

Referenced by gsasl_client_application_data_set(), and gsasl_server_application_data_set().

GSASL_API void* gsasl_application_data_get ( Gsasl ctx  ) 

gsasl_application_data_get:

Parameters:
ctx libgsasl handle.
Retrieve application specific data from libgsasl handle. The application data is set using gsasl_application_data_set(). It is normally used by the application to maintain state between the main program and the callback.

Return value: Returns the application specific data, or NULL.

Deprecated: Use gsasl_callback_hook_get() instead.

Definition at line 558 of file obsolete.c.

References Gsasl::application_hook.

GSASL_API void gsasl_application_data_set ( Gsasl ctx,
void *  appdata 
)

gsasl_application_data_set:

Parameters:
ctx libgsasl handle.
appdata opaque pointer to application specific data.
Store application specific data in the libgsasl handle. The application data can be later (for instance, inside a callback) be retrieved by calling gsasl_application_data_get(). It is normally used by the application to maintain state between the main program and the callback.

Deprecated: Use gsasl_callback_hook_set() instead.

Definition at line 539 of file obsolete.c.

References Gsasl::application_hook.

GSASL_API int gsasl_base64_decode ( char const *  src,
char *  target,
size_t  targsize 
)

gsasl_base64_decode:

Parameters:
src input byte array
target output byte array
targsize size of output byte array
Decode Base64 data. Skips all whitespace anywhere. Converts characters, four at a time, starting at (or after) src from Base64 numbers into three 8 bit bytes in the target area.

Return value: Returns the number of data bytes stored at the target, or -1 on error.

Deprecated: Use gsasl_base64_from() instead.

Definition at line 1794 of file obsolete.c.

References gsasl_base64_from().

GSASL_API int gsasl_base64_encode ( char const *  src,
size_t  srclength,
char *  target,
size_t  targsize 
)

gsasl_base64_encode:

Parameters:
src input byte array
srclength size of input byte array
target output byte array
targsize size of output byte array
Encode data as base64. Converts characters, three at a time, starting at src into four base64 characters in the target area until the entire input buffer is encoded.

Return value: Returns the number of data bytes stored at the target, or -1 on error.

Deprecated: Use gsasl_base64_to() instead.

Definition at line 1759 of file obsolete.c.

References gsasl_base64_to().

GSASL_API void* gsasl_client_application_data_get ( Gsasl_session sctx  ) 

gsasl_client_application_data_get:

Parameters:
sctx libgsasl client handle.
Retrieve application specific data from libgsasl client handle. The application data is set using gsasl_client_application_data_set(). It is normally used by the application to maintain state between the main program and the callback.

Return value: Returns the application specific data, or NULL.

Deprecated: Use gsasl_callback_hook_get() or gsasl_session_hook_get() instead.

Definition at line 350 of file obsolete.c.

References gsasl_appinfo_get().

GSASL_API void gsasl_client_application_data_set ( Gsasl_session sctx,
void *  application_data 
)

gsasl_client_application_data_set:

Parameters:
sctx libgsasl client handle.
application_data opaque pointer to application specific data.
Store application specific data in the libgsasl client handle. The application data can be later (for instance, inside a callback) be retrieved by calling gsasl_client_application_data_get(). It is normally used by the application to maintain state between the main program and the callback.

Deprecated: Use gsasl_callback_hook_set() or gsasl_session_hook_set() instead.

Definition at line 329 of file obsolete.c.

References gsasl_appinfo_set().

GSASL_API Gsasl_client_callback_anonymous gsasl_client_callback_anonymous_get ( Gsasl ctx  ) 

gsasl_client_callback_anonymous_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_anonymous_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 897 of file obsolete.c.

References Gsasl::cbc_anonymous.

Referenced by _gsasl_obsolete_property_map().

GSASL_API void gsasl_client_callback_anonymous_set ( Gsasl ctx,
Gsasl_client_callback_anonymous  cb 
)

gsasl_client_callback_anonymous_set:

Parameters:
ctx libgsasl handle.
cb callback function
Specify the callback function to use in the client to set the anonymous token, which usually is the users email address. The function can be later retrieved using gsasl_client_callback_anonymous_get().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 878 of file obsolete.c.

References Gsasl::cbc_anonymous.

GSASL_API Gsasl_client_callback_authentication_id gsasl_client_callback_authentication_id_get ( Gsasl ctx  ) 

gsasl_client_callback_authentication_id_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_authentication_id_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 654 of file obsolete.c.

References Gsasl::cbc_authentication_id.

Referenced by _gsasl_kerberos_v5_client_step(), and _gsasl_obsolete_property_map().

GSASL_API void gsasl_client_callback_authentication_id_set ( Gsasl ctx,
Gsasl_client_callback_authentication_id  cb 
)

gsasl_client_callback_authentication_id_set:

Parameters:
ctx libgsasl handle.
cb callback function
Specify the callback function to use in the client to set the authentication identity. The function can be later retrieved using gsasl_client_callback_authentication_id_get().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 634 of file obsolete.c.

References Gsasl::cbc_authentication_id.

GSASL_API Gsasl_client_callback_authorization_id gsasl_client_callback_authorization_id_get ( Gsasl ctx  ) 

gsasl_client_callback_authorization_id_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_authorization_id_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 694 of file obsolete.c.

References Gsasl::cbc_authorization_id.

Referenced by _gsasl_kerberos_v5_client_step(), and _gsasl_obsolete_property_map().

GSASL_API void gsasl_client_callback_authorization_id_set ( Gsasl ctx,
Gsasl_client_callback_authorization_id  cb 
)

gsasl_client_callback_authorization_id_set:

Parameters:
ctx libgsasl handle.
cb callback function
Specify the callback function to use in the client to set the authorization identity. The function can be later retrieved using gsasl_client_callback_authorization_id_get().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 674 of file obsolete.c.

References Gsasl::cbc_authorization_id.

GSASL_API Gsasl_client_callback_maxbuf gsasl_client_callback_maxbuf_get ( Gsasl ctx  ) 

gsasl_client_callback_maxbuf_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_maxbuf_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 977 of file obsolete.c.

References Gsasl::cbc_maxbuf.

Referenced by _gsasl_kerberos_v5_client_step().

GSASL_API void gsasl_client_callback_maxbuf_set ( Gsasl ctx,
Gsasl_client_callback_maxbuf  cb 
)

gsasl_client_callback_maxbuf_set:

Parameters:
ctx libgsasl handle.
cb callback function
Specify the callback function to use in the client to inform the server of the largest buffer the client is able to receive when using the DIGEST-MD5 "auth-int" or "auth-conf" Quality of Protection (qop). If this directive is missing, the default value 65536 will be assumed. The function can be later retrieved using gsasl_client_callback_maxbuf_get().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 958 of file obsolete.c.

References Gsasl::cbc_maxbuf.

GSASL_API Gsasl_client_callback_passcode gsasl_client_callback_passcode_get ( Gsasl ctx  ) 

gsasl_client_callback_passcode_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_passcode_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 774 of file obsolete.c.

References Gsasl::cbc_passcode.

Referenced by _gsasl_obsolete_property_map().

GSASL_API void gsasl_client_callback_passcode_set ( Gsasl ctx,
Gsasl_client_callback_passcode  cb 
)

gsasl_client_callback_passcode_set:

Parameters:
ctx libgsasl handle.
cb callback function
Specify the callback function to use in the client to set the passcode. The function can be later retrieved using gsasl_client_callback_passcode_get().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 754 of file obsolete.c.

References Gsasl::cbc_passcode.

GSASL_API Gsasl_client_callback_password gsasl_client_callback_password_get ( Gsasl ctx  ) 

gsasl_client_callback_password_get:

Parameters:
ctx libgsasl handle.
Return value: Returns the callback earlier set by calling gsasl_client_callback_password_set().

Deprecated: This function is part of the old callback interface. The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

Definition at line 734 of file obsolete.c.

References Gsasl::cbc_password.

Referenced by _gsas