Changeset 2089
- Timestamp:
- 12.01.2012 14:20:58 (4 months ago)
- Location:
- trunk/modules/Openssl/source
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/Openssl/source/common.cl
r1763 r2089 208 208 let len := length(self) 209 209 in (externC("ASN1_OCTET_STRING* asn1 = ASN1_OCTET_STRING_new()"), 210 externC(" PCCONSTunsigned char *buf = (unsigned char*)self"),210 externC("const unsigned char *buf = (unsigned char*)self"), 211 211 externC("d2i_ASN1_OCTET_STRING(&asn1, &buf, len)"), 212 212 let res := copy(externC("(char*)asn1->data", string), externC("asn1->length", integer)) -
trunk/modules/Openssl/source/key.cl
r1763 r2089 260 260 len := length(self), 261 261 x := key() 262 in (if (externC("((x->evp_key = d2i_PublicKey(EVP_PKEY_RSA,NULL,( PCCONSTunsigned char**)&buf,len)) == NULL)",integer) = 1)262 in (if (externC("((x->evp_key = d2i_PublicKey(EVP_PKEY_RSA,NULL,(const unsigned char**)&buf,len)) == NULL)",integer) = 1) 263 263 openssl_error!(), 264 264 x)] … … 270 270 len := length(self), 271 271 x := key() 272 in (if (externC("((x->evp_key = d2i_PrivateKey(EVP_PKEY_RSA,NULL,( PCCONSTunsigned char**)&buf,len)) == NULL)",integer) = 1)272 in (if (externC("((x->evp_key = d2i_PrivateKey(EVP_PKEY_RSA,NULL,(const unsigned char**)&buf,len)) == NULL)",integer) = 1) 273 273 openssl_error!(), 274 274 x)] -
trunk/modules/Openssl/source/pkcs7.cl
r1763 r2089 91 91 len := length(self) 92 92 in (externC("p7->p7bio = NULL"), 93 if (externC("(int)d2i_PKCS7(&p7_star, ( PCCONSTunsigned char**)&self, len)", integer) = 0)93 if (externC("(int)d2i_PKCS7(&p7_star, (const unsigned char**)&self, len)", integer) = 0) 94 94 openssl_error!(), 95 95 p7)] -
trunk/modules/Openssl/source/ssl.cl
r1766 r2089 41 41 Core/fd = Core/connect(addr, p), 42 42 Core/tcpport = p) 43 in (externC(" SSL_METHOD *meth=SSLv3_method()"),43 in (externC("const SSL_METHOD *meth=SSLv3_method()"), 44 44 if externC("(meth==NULL ? CTRUE : CFALSE)",boolean) 45 45 error("Couldn't create SSL method for ~A:~S", addr, p), -
trunk/modules/Openssl/source/x509.cl
r1763 r2089 148 148 len := length(self), 149 149 x := X509() 150 in (if (externC("((x->x509_star = d2i_X509(NULL,( PCCONSTunsigned char**)&buf,len)) == NULL)",integer) = 1)150 in (if (externC("((x->x509_star = d2i_X509(NULL,(const unsigned char**)&buf,len)) == NULL)",integer) = 1) 151 151 openssl_error!(), 152 152 x)]