OSDN Git Service

modify according to the change of keystore interface.
authorChia-chi Yeh <chiachi@android.com>
Mon, 8 Mar 2010 09:25:58 +0000 (17:25 +0800)
committerChia-chi Yeh <chiachi@android.com>
Mon, 8 Mar 2010 09:25:58 +0000 (17:25 +0800)
Change-Id: I1fe2ee40ac60ed858322a1ab38e6aec63820eda1

wpa_supplicant/src/crypto/tls_openssl.c

index 849358f..3d468ec 100644 (file)
@@ -55,7 +55,7 @@ static BIO *BIO_from_keystore(const char *key)
 {
        BIO *bio = NULL;
        char value[KEYSTORE_MESSAGE_SIZE];
-       int length = keystore_get(key, value);
+       int length = keystore_get(key, strlen(key), value);
        if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) {
                BIO_write(bio, value, length);
        }