From 41174856ed8cf6402c1f84a6f45cd70795c4fc3b Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Fri, 20 Apr 2012 18:49:36 +0200 Subject: [PATCH] Use version number from openssv.h --- OpenSSL-for-iOS/ViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSSL-for-iOS/ViewController.m b/OpenSSL-for-iOS/ViewController.m index 6a968886..e1a60eec 100644 --- a/OpenSSL-for-iOS/ViewController.m +++ b/OpenSSL-for-iOS/ViewController.m @@ -11,6 +11,7 @@ #import "ViewController.h" #include #include +#include @implementation ViewController @@ -70,7 +71,9 @@ - (IBAction)calculateSHA256:(id)sender - (IBAction)showInfo { - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"OpenSSL-for-iOS" message:@"OpenSSL-Version: 1.0.1\nLicense: See include/LICENSE\n\nCopyright 2010-2012 by Felix Schulze\n http://www.x2on.de" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil]; + NSString *version = [NSString stringWithCString:OPENSSL_VERSION_TEXT encoding:NSUTF8StringEncoding]; + NSString *message = [NSString stringWithFormat:@"OpenSSL-Version: %@\nLicense: See include/LICENSE\n\nCopyright 2010-2012 by Felix Schulze\n http://www.x2on.de", version]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"OpenSSL-for-iOS" message:message delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil]; [alert show]; }