/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | copy_creds.c | 41 krb5_data *scratch; local 60 retval = krb5_copy_data(context, &incred->ticket, &scratch); 63 tempcred->ticket = *scratch; 64 krb5_xfree(scratch); 65 retval = krb5_copy_data(context, &incred->second_ticket, &scratch); 69 tempcred->second_ticket = *scratch; 70 krb5_xfree(scratch);
|
H A D | copy_tick.c | 99 krb5_data *scratch; local 109 retval = krb5_copy_data(context, &from->enc_part.ciphertext, &scratch); 115 tempto->enc_part.ciphertext = *scratch; 116 krb5_xfree(scratch);
|
H A D | decrypt_tk.c | 47 krb5_data scratch; local 53 scratch.length = ticket->enc_part.ciphertext.length; 54 if (!(scratch.data = malloc(ticket->enc_part.ciphertext.length))) 60 &ticket->enc_part, &scratch))) { 61 free(scratch.data); 65 #define clean_scratch() {memset(scratch.data, 0, scratch.length); \ 66 free(scratch.data);} 69 retval = decode_krb5_enc_tkt_part(&scratch, &dec_tkt_part);
|
H A D | encrypt_tk.c | 48 krb5_data *scratch; local 53 if ((retval = encode_krb5_enc_tkt_part(dec_tkt_part, &scratch))) { 57 #define cleanup_scratch() { (void) memset(scratch->data, 0, scratch->length); \ 58 krb5_free_data(context, scratch); } 62 KRB5_KEYUSAGE_KDC_REP_TICKET, scratch,
|
H A D | kdc_rep_dc.c | 43 krb5_data scratch; local 53 /* set up scratch decrypt/decode area */ 55 scratch.length = dec_rep->enc_part.ciphertext.length; 56 if (!(scratch.data = malloc(dec_rep->enc_part.ciphertext.length))) { 63 &scratch))) { 64 free(scratch.data); 68 #define clean_scratch() {memset(scratch.data, 0, scratch.length); \ 69 free(scratch.data);} 72 retval = decode_krb5_enc_kdc_rep_part(&scratch, [all...] |
H A D | mk_rep.c | 48 krb5_data * scratch; local 73 if ((retval = encode_krb5_ap_rep_enc_part(&repl, &scratch))) 78 scratch, &reply.enc_part))) 92 memset(scratch->data, 0, scratch->length); 93 krb5_free_data(context, scratch);
|
H A D | rd_rep.c | 49 krb5_data scratch; local 61 scratch.length = reply->enc_part.ciphertext.length; 62 if (!(scratch.data = malloc(scratch.length))) { 69 &reply->enc_part, &scratch))) 73 retval = decode_krb5_ap_rep_enc_part(&scratch, repl); 110 memset(scratch.data, 0, scratch.length); 113 free(scratch.data);
|
H A D | encode_kdc.c | 52 krb5_data *scratch; local 89 retval = encode_krb5_enc_kdc_rep_part(&tmp_encpart, &scratch); 95 #define cleanup_scratch() { (void) memset(scratch->data, 0, scratch->length); \ 96 krb5_free_data(context, scratch); } 98 retval = krb5_encrypt_helper(context, client_key, usage, scratch,
|
H A D | mk_req_ext.c | 140 krb5_data *scratch = 0; local 237 &scratch))) 250 scratch, &request.authenticator))) 271 if (scratch) { 272 memset(scratch->data, 0, scratch->length); 273 krb5_xfree(scratch->data); 274 krb5_xfree(scratch);
|
H A D | rd_cred.c | 24 krb5_data scratch; local 26 scratch.length = pcred->enc_part.ciphertext.length; 27 if (!(scratch.data = (char *)malloc(scratch.length))) 33 &pcred->enc_part, &scratch))) 37 (void) memcpy(scratch.data, pcred->enc_part.ciphertext.data, scratch.length); 41 if ((retval = decode_krb5_enc_cred_part(&scratch, &ppart))) 53 (void) memset(scratch.data, 0, scratch [all...] |
H A D | rd_priv.c | 64 krb5_data scratch; local 85 scratch.length = privmsg->enc_part.ciphertext.length; 86 if (!(scratch.data = malloc(scratch.length))) { 94 &privmsg->enc_part, &scratch))) 98 if ((retval = decode_krb5_enc_priv_part(&scratch, &privmsg_enc_part))) 144 (void) memset(scratch.data, 0, scratch.length); 145 krb5_xfree(scratch.data);
|
H A D | rd_safe.c | 59 krb5_data *scratch; local 122 retval = encode_krb5_safe_with_body(&swb, &scratch); 129 scratch, his_cksum, &valid); 131 (void) memset((char *)scratch->data, 0, scratch->length); 132 krb5_free_data(context, scratch);
|
H A D | fwd_tgt.c | 52 krb5_data * scratch = 0; local 196 &scratch, &replaydata); 203 if (scratch) { 205 krb5_free_data(context, scratch); 207 *outbuf = *scratch; 208 krb5_xfree(scratch);
|
H A D | mk_cred.c | 34 krb5_data * scratch; local 37 if ((retval = encode_krb5_enc_cred_part(pcredpart, &scratch))) 45 pencdata->ciphertext.data = scratch->data; 46 pencdata->ciphertext.length = scratch->length; 47 krb5_xfree(scratch); 54 scratch, pencdata); 63 memset(scratch->data, 0, scratch->length); 64 krb5_free_data(context, scratch);
|
H A D | send_tgs.c | 62 krb5_data * scratch; local 87 if ((retval = encode_krb5_authenticator(&authent, &scratch))) { 100 /* Cleanup scratch and scratch data */ 106 scratch, &request.authenticator))) 125 memset(scratch->data, 0, scratch->length); 126 free(scratch->data); 128 free(scratch); 165 krb5_data *scratch, scratch local [all...] |
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj_bootflags.c | 51 char scratch[BOOTARGS_MAX]; local 145 (void) strncpy(scratch, params.gos_optargp, 147 scratch[params.gos_optarglen] = '\0'; 149 (void) strlcat(initargs, scratch,
|
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/ |
H A D | spi.c | 91 char scratch[33]; local 101 bcopy(ext_prov.ei_label, scratch, CRYPTO_EXT_SIZE_LABEL); 102 scratch[CRYPTO_EXT_SIZE_LABEL] = '\0'; 103 mdb_printf("ei_label\t\t%s\n", scratch); 105 bcopy(ext_prov.ei_manufacturerID, scratch, CRYPTO_EXT_SIZE_MANUF); 106 scratch[CRYPTO_EXT_SIZE_MANUF] = '\0'; 107 mdb_printf("ei_manufacturerID\t%s\n", scratch); 109 bcopy(ext_prov.ei_model, scratch, CRYPTO_EXT_SIZE_MODEL); 110 scratch[CRYPTO_EXT_SIZE_MODEL] = '\0'; 111 mdb_printf("ei_model\t\t%s\n", scratch); [all...] |
/illumos-gate/usr/src/cmd/saf/ |
H A D | util.c | 107 char scratch[SIZE]; /* a scratch buffer */ local 125 (void) sprintf(scratch, "tag too long, truncated to <%s>", p); 126 log(scratch); 149 (void) sprintf(scratch, "type too long, truncated to <%s>", p); 150 log(scratch); 180 (void) sprintf(scratch, "Unrecognized flag <%c>", *(p - 1)); 182 log(scratch); 185 error(scratch);
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_ctrl.c | 88 char scratch[16]; local 174 (void) snprintf(scratch, sizeof (scratch), 176 name = scratch;
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 77 char buf[BUFSIZ + 1]; /* scratch buffer */ 78 char *bp; /* scratch pointer */ 79 char *p; /* scratch pointer */ 177 char scratch[BUFSIZ]; /* scratch buffer */ local 179 char *tp; /* scratch pointer */ 248 (void) snprintf(scratch, sizeof (scratch), "%s=%s", var, p); 250 tp = malloc(strlen(scratch) + 1); 253 (void) strcpy(tp, scratch); [all...] |
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex.c | 149 unsigned char scratch [PATH_MAX+1]; /* temp for sourcing rc file(s) */ local 542 strncpy(scratch, cp, sizeof (scratch) - 1); 543 strncat(scratch, "/.exrc", 544 sizeof (scratch) - 1 - strlen(scratch)); 547 if ((vret = validate_exrc(scratch)) == 0) { 548 source(scratch, 1); 577 if (strcmp(scratch, exrcpath) != 0) {
|
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ecp_jm.c | 66 mp_int *raz4, mp_int scratch[], const ECGroup *group) 71 t0 = &scratch[0]; 72 t1 = &scratch[1]; 73 M = &scratch[2]; 74 S = &scratch[3]; 137 mp_int *raz4, mp_int scratch[], const ECGroup *group) 142 A = &scratch[0]; 143 B = &scratch[1]; 144 C = &scratch[2]; 145 D = &scratch[ 64 ec_GFp_pt_dbl_jm(const mp_int *px, const mp_int *py, const mp_int *pz, const mp_int *paz4, mp_int *rx, mp_int *ry, mp_int *rz, mp_int *raz4, mp_int scratch[], const ECGroup *group) argument 134 ec_GFp_pt_add_jm_aff(const mp_int *px, const mp_int *py, const mp_int *pz, const mp_int *paz4, const mp_int *qx, const mp_int *qy, mp_int *rx, mp_int *ry, mp_int *rz, mp_int *raz4, mp_int scratch[], const ECGroup *group) argument 230 mp_int scratch[MAX_SCRATCH]; local [all...] |
/illumos-gate/usr/src/common/net/wanboot/crypt/ |
H A D | des3.c | 109 uint64_t scratch; local 163 scratch = key_so_far; 173 scratch >>= 1; 174 if (scratch & 0x1) /* bit 1 */ 176 scratch >>= 1; 177 if (scratch & 0x1) /* bit 2 */ 179 scratch >>= 1; 180 if (scratch & 0x1) /* bit 3 */ 182 scratch >>= 1; 183 if (scratch [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcp.c | 272 char scratch[128]; local 452 (void) strcpy(scratch, inet_ntoa(tmp)); 458 scratch, inet_ntoa(tmp)); 478 (void) sprintf(scratch, 482 display_ascii_hex(scratch, &start);
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | lslog.c | 90 char scratch[BUFSIZ]; local 93 strcpy(scratch, err_list[code].err_msg); 94 clean_up(code, exitflag, scratch); 109 char scratch[256]; local 115 (void) snprintf(scratch, sizeof (scratch), "%s: %s", 118 (void) strlcat(scratch, ": ", sizeof (scratch)); 119 (void) strlcat(scratch, strerror(save_errno), sizeof (scratch)); 132 char scratch[256]; local [all...] |