Skip to content

Commit

Permalink
Use version number from openssv.h
Browse files Browse the repository at this point in the history
  • Loading branch information
x2on committed Apr 20, 2012
1 parent 10bf903 commit 4117485
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OpenSSL-for-iOS/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "ViewController.h"
#include <Openssl/md5.h>
#include <Openssl/sha.h>
#include <Openssl/opensslv.h>

@implementation ViewController

Expand Down Expand Up @@ -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];
}

Expand Down

0 comments on commit 4117485

Please sign in to comment.