~ubuntu-branches/ubuntu/trusty/krb5/trusty-proposed

« back to all changes in this revision

Viewing changes to src/plugins/preauth/pkinit/pkinit_kdf_test.c

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-11-10 02:20:12 UTC
  • mfrom: (53.1.3 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131110022012-b8ojkqhcxos55kln
Add alternate dependency on libverto-libevent1 as that's the package
ABI name in ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
{
84
84
    /* arguments for calls to pkinit_alg_agility_kdf() */
85
85
    krb5_context context = 0;
86
 
    krb5_octet_data secret;
 
86
    krb5_data secret;
87
87
    krb5_algorithm_identifier alg_id;
88
 
    krb5_octet_data as_req;
89
 
    krb5_octet_data pk_as_rep;
 
88
    krb5_data as_req;
 
89
    krb5_data pk_as_rep;
90
90
    krb5_keyblock key_block;
91
91
 
92
92
    /* other local variables */
127
127
    memset(twenty_as, 0xaa, sizeof(twenty_as));
128
128
    memset(eighteen_bs, 0xbb, sizeof(eighteen_bs));
129
129
    as_req.length = sizeof(twenty_as);
130
 
    as_req.data = (unsigned char *)&twenty_as;
 
130
    as_req.data = twenty_as;
131
131
 
132
132
    pk_as_rep.length = sizeof(eighteen_bs);
133
 
    pk_as_rep.data = (unsigned char *)&eighteen_bs;
 
133
    pk_as_rep.data = eighteen_bs;
134
134
 
135
135
    /* TEST 1:  SHA-1/AES */
136
136
    /* set up algorithm id */
137
 
    alg_id.algorithm.data = (unsigned char *)&krb5_pkinit_sha1_oid;
 
137
    alg_id.algorithm.data = (char *)krb5_pkinit_sha1_oid;
138
138
    alg_id.algorithm.length = krb5_pkinit_sha1_oid_len;
139
139
 
140
140
    enctype = enctype_aes;
175
175
 
176
176
    /* TEST 2: SHA-256/AES */
177
177
    /* set up algorithm id */
178
 
    alg_id.algorithm.data = (unsigned char *)&krb5_pkinit_sha256_oid;
 
178
    alg_id.algorithm.data = (char *)krb5_pkinit_sha256_oid;
179
179
    alg_id.algorithm.length = krb5_pkinit_sha256_oid_len;
180
180
 
181
181
    enctype = enctype_aes;
216
216
 
217
217
    /* TEST 3: SHA-512/DES3 */
218
218
    /* set up algorithm id */
219
 
    alg_id.algorithm.data = (unsigned char *)&krb5_pkinit_sha512_oid;
 
219
    alg_id.algorithm.data = (char *)krb5_pkinit_sha512_oid;
220
220
    alg_id.algorithm.length = krb5_pkinit_sha512_oid_len;
221
221
 
222
222
    enctype = enctype_des3;