diff options
author | djm <> | 2010-10-01 22:59:01 +0000 |
---|---|---|
committer | djm <> | 2010-10-01 22:59:01 +0000 |
commit | fe047d8b632246cb2db3234a0a4f32e5c318857b (patch) | |
tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libcrypto/rsa/rsa_asn1.c | |
parent | 2ea67f4aa254b09ded62e6e14fc893bbe6381579 (diff) | |
download | openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.gz openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.bz2 openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.zip |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_asn1.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_asn1.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_asn1.c b/src/lib/libcrypto/rsa/rsa_asn1.c index 6e8a803e81..4efca8cdc8 100644 --- a/src/lib/libcrypto/rsa/rsa_asn1.c +++ b/src/lib/libcrypto/rsa/rsa_asn1.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
5 | /* ==================================================================== | 5 | /* ==================================================================== |
6 | * Copyright (c) 2000 The OpenSSL Project. All rights reserved. | 6 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | 9 | * modification, are permitted provided that the following conditions |
@@ -62,19 +62,9 @@ | |||
62 | #include <openssl/rsa.h> | 62 | #include <openssl/rsa.h> |
63 | #include <openssl/asn1t.h> | 63 | #include <openssl/asn1t.h> |
64 | 64 | ||
65 | static ASN1_METHOD method={ | ||
66 | (I2D_OF(void)) i2d_RSAPrivateKey, | ||
67 | (D2I_OF(void)) d2i_RSAPrivateKey, | ||
68 | (void *(*)(void)) RSA_new, | ||
69 | (void (*)(void *)) RSA_free}; | ||
70 | |||
71 | ASN1_METHOD *RSAPrivateKey_asn1_meth(void) | ||
72 | { | ||
73 | return(&method); | ||
74 | } | ||
75 | |||
76 | /* Override the default free and new methods */ | 65 | /* Override the default free and new methods */ |
77 | static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it) | 66 | static int rsa_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, |
67 | void *exarg) | ||
78 | { | 68 | { |
79 | if(operation == ASN1_OP_NEW_PRE) { | 69 | if(operation == ASN1_OP_NEW_PRE) { |
80 | *pval = (ASN1_VALUE *)RSA_new(); | 70 | *pval = (ASN1_VALUE *)RSA_new(); |