Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 13 additions and 5 deletions. Show diff stats Hide diff stats

  1. 18  src/include/krb5/preauth_plugin.h
18  src/include/krb5/preauth_plugin.h
@@ -317,6 +317,17 @@ typedef struct krb5_kdcpreauth_rock_st *krb5_kdcpreauth_rock;
317 317
 typedef struct krb5_kdcpreauth_moddata_st *krb5_kdcpreauth_moddata;
318 318
 typedef struct krb5_kdcpreauth_modreq_st *krb5_kdcpreauth_modreq;
319 319
 
  320
+typedef krb5_error_code
  321
+(*krb5_kdb_get_string)(krb5_context context,
  322
+                       krb5_kdcpreauth_rock rock,
  323
+                       const char *key,
  324
+                       char **value_out);
  325
+
  326
+typedef void
  327
+(*krb5_kdb_free_string)(krb5_context context,
  328
+                        krb5_kdcpreauth_rock rock,
  329
+                        char *string);
  330
+
320 331
 /* Before using a callback after version 1, modules must check the vers
321 332
  * field of the callback structure. */
322 333
 typedef struct krb5_kdcpreauth_callbacks_st {
@@ -357,13 +368,10 @@ typedef struct krb5_kdcpreauth_callbacks_st {
357 368
 
358 369
     /* Retrieve a string attribute from the client DB entry, or NULL if no such
359 370
      * attribute is set.  Free the result with the free_string callback. */
360  
-    krb5_error_code (*get_string)(krb5_context context,
361  
-                                  krb5_kdcpreauth_rock rock, const char *key,
362  
-                                  char **value_out);
  371
+    krb5_kdb_get_string get_string;
363 372
 
364 373
     /* Free the result of get_string. */
365  
-    void (*free_string)(krb5_context context, krb5_kdcpreauth_rock rock,
366  
-                        char *string);
  374
+    krb5_kdb_free_string free_string;
367 375
 
368 376
     /* Get a pointer to the client DB entry (returned as a void pointer to
369 377
      * avoid a dependency on a libkdb5 type). */

No commit comments for this range

Something went wrong with that request. Please try again.