Remove some unnecessary code "protecting" some use of the OpenSSL library.
This commit is contained in:
+1
-5
@@ -2,7 +2,7 @@
|
||||
* Shairport, an Apple Airplay receiver
|
||||
* Copyright (c) James Laird 2013
|
||||
* All rights reserved.
|
||||
* Modifications (c) Mike Brady 2014--2018
|
||||
* Modifications and additions (c) Mike Brady 2014--2019
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
@@ -1602,14 +1602,10 @@ int main(int argc, char **argv) {
|
||||
uint8_t ap_md5[16];
|
||||
|
||||
#ifdef CONFIG_OPENSSL
|
||||
// can't imagine this is necessary, but here it is anyway
|
||||
int oldState;
|
||||
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldState); // make this un-cancellable
|
||||
MD5_CTX ctx;
|
||||
MD5_Init(&ctx);
|
||||
MD5_Update(&ctx, config.service_name, strlen(config.service_name));
|
||||
MD5_Final(ap_md5, &ctx);
|
||||
pthread_setcancelstate(oldState, NULL);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MBEDTLS
|
||||
|
||||
Reference in New Issue
Block a user