Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 675054 | Differences between
and this patch

Collapse All | Expand All

(-)ekg2-master.orig/plugins/sim/simlite.c (-4 / +4 lines)
Lines 185-191 Link Here
185
	RSA *key = sim_key_read(uid, NULL);
185
	RSA *key = sim_key_read(uid, NULL);
186
	unsigned char md_value[EVP_MAX_MD_SIZE], *buf, *newbuf;
186
	unsigned char md_value[EVP_MAX_MD_SIZE], *buf, *newbuf;
187
	char *result = NULL;
187
	char *result = NULL;
188
	EVP_MD_CTX ctx;
188
	EVP_MD_CTX *ctx;
189
	unsigned int md_len;
189
	unsigned int md_len;
190
	int size, i;
190
	int size, i;
191
191
Lines 209-217 Link Here
209
	else
209
	else
210
		size = i2d_RSAPrivateKey(key, &newbuf);
210
		size = i2d_RSAPrivateKey(key, &newbuf);
211
	
211
	
212
	EVP_DigestInit(&ctx, EVP_sha1());	
212
	EVP_DigestInit(ctx, EVP_sha1());	
213
	EVP_DigestUpdate(&ctx, buf, size);
213
	EVP_DigestUpdate(ctx, buf, size);
214
	EVP_DigestFinal(&ctx, md_value, &md_len);
214
	EVP_DigestFinal(ctx, md_value, &md_len);
215
215
216
	free(buf);
216
	free(buf);
217
217

Return to bug 675054