r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
[samba.git] / source4 / libads / krb5_setpw.c
index 9cf15221a8dd2417ca96415c300d4bdccdd5075f..257c28e755afc4cb6ea2f9ca9b2833f04b193c88 100644 (file)
@@ -49,8 +49,7 @@ static DATA_BLOB encode_krb5_setpw(const char *principal, const char *password)
        char* realm = NULL;
        char* c;
        char* princ;
-
-       ASN1_DATA req;
+       struct asn1_data req;
        DATA_BLOB ret;
 
 
@@ -111,7 +110,7 @@ static DATA_BLOB encode_krb5_setpw(const char *principal, const char *password)
        return ret;
 }      
 
-static krb5_error_code build_kpasswd_request(uint16 pversion,
+static krb5_error_code build_kpasswd_request(uint16_t pversion,
                                           krb5_context context,
                                           krb5_auth_context auth_context,
                                           krb5_data *ap_req,
@@ -199,7 +198,7 @@ static krb5_error_code setpw_result_code_string(krb5_context context,
                                                int result_code,
                                                const char **code_string)
 {
-        unsigned int idx = 0;
+        uint_t idx = 0;
 
        while (kpasswd_errors[idx].error_string != NULL) {
                if (kpasswd_errors[idx].result_code == 
@@ -340,7 +339,7 @@ static krb5_error_code parse_setpw_reply(krb5_context context,
 
 static ADS_STATUS do_krb5_kpasswd_request(krb5_context context,
                                          const char *kdc_host,
-                                         uint16 pversion,
+                                         uint16_t pversion,
                                          krb5_creds *credsp,
                                          const char *princ,
                                          const char *newpw)